mirror of
https://github.com/dorny/paths-filter
synced 2026-11-17 02:45:59 +01:00
Fix missing await
This commit is contained in:
2 files changed
+2
-2
No files matched your search
+1
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user