Skip to content

Commit

Permalink
Fix missing await
Browse files Browse the repository at this point in the history
  • Loading branch information
Michal Dorner committed Apr 12, 2021
1 parent f1c461f commit 78b1672
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/git.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 78b1672

Please sign in to comment.