Skip to content

Commit dca2148

Browse files
committed
module: remove unused code in module.js
Remove unnecessary condition in lib/module.js. Refs: nodejs#18593 (comment)
1 parent 60e612d commit dca2148

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

‎lib/module.js‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -129,9 +129,6 @@ function readPackage(requestPath) {
129129
return false;
130130
}
131131

132-
if (json === '')
133-
return packageMainCache[requestPath] = undefined;
134-
135132
try {
136133
var pkg = packageMainCache[requestPath] = JSON.parse(json).main;
137134
} catch (e) {

0 commit comments

Comments
 (0)