From a9075f6db30248f68de2b8ac0b3ae8e5f8670299 Mon Sep 17 00:00:00 2001 From: typicode Date: Tue, 14 May 2019 18:32:47 +0200 Subject: [PATCH] Fix TS error --- src/installer/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/installer/index.ts b/src/installer/index.ts index d05e2d688..4f86c579a 100644 --- a/src/installer/index.ts +++ b/src/installer/index.ts @@ -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",