Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorisaacs <i@izs.me>2019-12-12 00:25:40 +0300
committerisaacs <i@izs.me>2019-12-12 00:25:40 +0300
commit797a59797a2e226631f068c912f351ba340581fe (patch)
treeedaa8d0a11fd0c6b54632610a66fe6931e092d2c /test
parentfd29398f6904010493acc7c3d96af38178f94b97 (diff)
test: fix lint error
Not sure why this wasn't raised when I was running the release, the tests definitely passed. Fixed now, at any rate.
Diffstat (limited to 'test')
-rw-r--r--test/tap/bin-overwriting.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/tap/bin-overwriting.js b/test/tap/bin-overwriting.js
index 155d4abf5..f5bbeca57 100644
--- a/test/tap/bin-overwriting.js
+++ b/test/tap/bin-overwriting.js
@@ -8,10 +8,11 @@ const path = require('path')
const readBinCb = process.platform === 'win32' ? readCmdShim : readlink
const readBin = bin => new Promise((resolve, reject) => {
readBinCb(bin, (er, target) => {
- if (er)
+ if (er) {
reject(er)
- else
+ } else {
resolve(path.resolve(pkg + '/global/bin', target))
+ }
})
})