Skip to content

Commit

Permalink
Fix TS error
Browse files Browse the repository at this point in the history
  • Loading branch information
typicode committed May 14, 2019
1 parent a6ebec6 commit a9075f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/installer/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ export function install(
return
}

if (gitDirOrFile === null) {
if (gitDirOrFile === null || gitDirOrFile === undefined) {
console.log("Can't find .git, skipping Git hooks installation.")
console.log(
"Please check that you're in a cloned repository",
Expand Down

0 comments on commit a9075f6

Please sign in to comment.