Fix missing await

This commit is contained in:
Michal Dorner 2021-04-12 22:31:38 +02:00
parent f1c461fccf
commit 78b1672eeb
No known key found for this signature in database
GPG Key ID: 9EEE04B48DA36786
2 changed files with 2 additions and 2 deletions

2
dist/index.js vendored
View File

@ -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

View File

@ -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