Skip to content

Commit b784443

Browse files
committed
Move source var assignment a block more nested
1 parent ec5dc13 commit b784443

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

registry/lib/npm.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,8 +216,8 @@ function resolveBinPathSync(binPath) {
216216
}
217217

218218
let relPath = ''
219-
const source = fs.readFileSync(binPath, 'utf8')
220219
if (hasKnownExt) {
220+
const source = fs.readFileSync(binPath, 'utf8')
221221
if (isNpmOrNpx) {
222222
if (extLowered === '.cmd') {
223223
// "npm.cmd" and "npx.cmd" defined by

0 commit comments

Comments
 (0)