summaryrefslogtreecommitdiff
path: root/lib/module.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/module.js')
-rw-r--r--lib/module.js3
1 files changed, 0 insertions, 3 deletions
diff --git a/lib/module.js b/lib/module.js
index c3250608eb..77ed83423b 100644
--- a/lib/module.js
+++ b/lib/module.js
@@ -128,9 +128,6 @@ function readPackage(requestPath) {
return false;
}
- if (json === '')
- return packageMainCache[requestPath] = undefined;
-
try {
var pkg = packageMainCache[requestPath] = JSON.parse(json).main;
} catch (e) {