Permalink
Browse files

[fix] call .findNextDir recursively

  • Loading branch information...
1 parent 4968886 commit 2352c317b56cc98eed54f38604935f052ce88168 @fb55 fb55 committed Sep 8, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/require-analyzer.js
View
@@ -533,7 +533,7 @@ analyzer.findNextDir = function(target, callback) {
callback(null, target);
}
else if (stats.isFile()) {
- analyzer.findModulesDir(path.dirname(target), callback);
+ analyzer.findNextDir(path.dirname(target), callback);
}
else {
callback(new Error(target + ' is not a file or a directory.'));

0 comments on commit 2352c31

Please sign in to comment.