aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorXhmikosR <[email protected]>2019-11-21 03:15:17 +0200
committerNick Merwin <[email protected]>2019-11-20 17:15:17 -0800
commit06459aeba4854c30f51e7973b5a6f9cb48efdfdd (patch)
treed63db83c24f42df67e9a9fa5a25cd0fada629883 /lib
parent0d13be9cc7c7d5a5d34f0dee2fd905f8c05ec955 (diff)
downloadnode-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')
-rw-r--r--lib/detectLocalGit.js3
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;
}