Skip to content

Commit cf2e50c

Browse files
committed
style: comment
1 parent 56b9306 commit cf2e50c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ const git = (args: string[]): cp.SpawnSyncReturns<Buffer> =>
1111

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

0 commit comments

Comments
 (0)