Skip to content

Commit 797a597

Browse files
committed
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.
1 parent fd29398 commit 797a597

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

test/tap/bin-overwriting.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,11 @@ const path = require('path')
88
const readBinCb = process.platform === 'win32' ? readCmdShim : readlink
99
const readBin = bin => new Promise((resolve, reject) => {
1010
readBinCb(bin, (er, target) => {
11-
if (er)
11+
if (er) {
1212
reject(er)
13-
else
13+
} else {
1414
resolve(path.resolve(pkg + '/global/bin', target))
15+
}
1516
})
1617
})
1718

0 commit comments

Comments
 (0)