Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Nerivec committed Jun 15, 2024
1 parent 8347f53 commit 5e0664b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ async function currentHash() {
const git = require('git-last-commit');

return new Promise((resolve) => {
git.getLastCommit((err, commit) => (err) ? resolve('unknown') : resolve(commit.shortHash));
git.getLastCommit((err, commit) => err ? resolve('unknown') : resolve(commit.shortHash));
});
}

Expand Down

0 comments on commit 5e0664b

Please sign in to comment.