Skip to content

Commit

Permalink
Stop filtering entries that not user-supplied
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisyip committed Apr 22, 2015
1 parent 9a12b73 commit 077f7ee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/module.js
Original file line number Diff line number Diff line change
Expand Up @@ -489,9 +489,9 @@ Module._initPaths = function() {

var nodePath = process.env['NODE_PATH'];
if (nodePath) {
paths = nodePath.split(path.delimiter).concat(paths).filter(function(path) {
paths = nodePath.split(path.delimiter).filter(function(path) {
return !!path
});
}).concat(paths);
}

modulePaths = paths;
Expand Down

0 comments on commit 077f7ee

Please sign in to comment.