Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
module: remove unused code in module.js
Remove unnecessary condition in lib/module.js.

Refs: #18593 (comment)
  • Loading branch information
Trott committed Feb 13, 2018
commit dca2148f9d98815ac5241e819dbc612e447e0101
3 changes: 0 additions & 3 deletions lib/module.js
Original file line number Diff line number Diff line change
Expand Up @@ -129,9 +129,6 @@ function readPackage(requestPath) {
return false;
}

if (json === '')
return packageMainCache[requestPath] = undefined;

try {
var pkg = packageMainCache[requestPath] = JSON.parse(json).main;
} catch (e) {
Expand Down