diff options
author | isaacs <i@izs.me> | 2019-12-12 00:25:40 +0300 |
---|---|---|
committer | isaacs <i@izs.me> | 2019-12-12 00:25:40 +0300 |
commit | 797a59797a2e226631f068c912f351ba340581fe (patch) | |
tree | edaa8d0a11fd0c6b54632610a66fe6931e092d2c /test | |
parent | fd29398f6904010493acc7c3d96af38178f94b97 (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.js | 5 |
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)) + } }) }) |