Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fd29398 commit 797a597Copy full SHA for 797a597
test/tap/bin-overwriting.js
@@ -8,10 +8,11 @@ const path = require('path')
8
const readBinCb = process.platform === 'win32' ? readCmdShim : readlink
9
const readBin = bin => new Promise((resolve, reject) => {
10
readBinCb(bin, (er, target) => {
11
- if (er)
+ if (er) {
12
reject(er)
13
- else
+ } else {
14
resolve(path.resolve(pkg + '/global/bin', target))
15
+ }
16
})
17
18
0 commit comments