Skip to content

Commit

Permalink
style: comment
Browse files Browse the repository at this point in the history
  • Loading branch information
typicode committed Jul 6, 2021
1 parent 56b9306 commit cf2e50c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ const git = (args: string[]): cp.SpawnSyncReturns<Buffer> =>

export function install(dir = '.husky'): void {
// Ensure that we're inside a git repository
// If git command is not found, status is null and we should return.
// That's why status value needs to be checked explicitly.
if (git(['rev-parse']).status !== 0) {
return
}
Expand Down

0 comments on commit cf2e50c

Please sign in to comment.