mirror of
https://github.com/dorny/paths-filter.git
synced 2025-06-07 16:49:03 +00:00
Fix missing await
This commit is contained in:
parent
f1c461fccf
commit
78b1672eeb
2 changed files with 2 additions and 2 deletions
2
dist/index.js
vendored
2
dist/index.js
vendored
|
@ -4010,7 +4010,7 @@ async function getCommitCount() {
|
|||
}
|
||||
async function getLocalRef(shortName) {
|
||||
if (isGitSha(shortName)) {
|
||||
return hasCommit(shortName) ? shortName : undefined;
|
||||
return await hasCommit(shortName) ? shortName : undefined;
|
||||
}
|
||||
const output = (await exec_1.default('git', ['show-ref', shortName], { ignoreReturnCode: true })).stdout;
|
||||
const refs = output
|
||||
|
|
|
@ -209,7 +209,7 @@ async function getCommitCount(): Promise<number> {
|
|||
|
||||
async function getLocalRef(shortName: string): Promise<string | undefined> {
|
||||
if (isGitSha(shortName)) {
|
||||
return hasCommit(shortName) ? shortName : undefined
|
||||
return (await hasCommit(shortName)) ? shortName : undefined
|
||||
}
|
||||
|
||||
const output = (await exec('git', ['show-ref', shortName], {ignoreReturnCode: true})).stdout
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue