diff options
| author | XhmikosR <[email protected]> | 2019-11-21 03:15:17 +0200 |
|---|---|---|
| committer | Nick Merwin <[email protected]> | 2019-11-20 17:15:17 -0800 |
| commit | 06459aeba4854c30f51e7973b5a6f9cb48efdfdd (patch) | |
| tree | d63db83c24f42df67e9a9fa5a25cd0fada629883 /lib/detectLocalGit.js | |
| parent | 0d13be9cc7c7d5a5d34f0dee2fd905f8c05ec955 (diff) | |
| download | node-coveralls-06459aeba4854c30f51e7973b5a6f9cb48efdfdd.tar.xz node-coveralls-06459aeba4854c30f51e7973b5a6f9cb48efdfdd.zip | |
Remove `path.existsSync` (#248)
This is a leftover from pretty ancient Node.js versions.
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; } |
