diff options
Diffstat (limited to 'lib/detectLocalGit.js')
| -rw-r--r-- | lib/detectLocalGit.js | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/detectLocalGit.js b/lib/detectLocalGit.js index 89133ff..16275f2 100644 --- a/lib/detectLocalGit.js +++ b/lib/detectLocalGit.js @@ -12,8 +12,7 @@ function detectLocalGit() { while (path.resolve('/') !== dir) { gitDir = path.join(dir, '.git'); - const existsSync = fs.existsSync || path.existsSync; - if (existsSync(path.join(gitDir, 'HEAD'))) { + if (fs.existsSync(path.join(gitDir, 'HEAD'))) break; } |
