Fix missing await

This commit is contained in:
Michal Dorner committed 2021-04-12 22:31:38 +02:00
1 parent f1c461fccf
commit 78b1672eeb
2 files changed
+2 -2

No files matched your search

+1 -1
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
+1 -1
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