Permalink
Browse files

[fix] call callback when a node_modules folder is present

  • Loading branch information...
1 parent eeebe3a commit 873a6412f7e2a29a134c6dc31d9d4ab4c8c13abc @fb55 fb55 committed Sep 8, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/require-analyzer.js
View
@@ -231,7 +231,7 @@ analyzer.dir = function (options, callback) {
var remaining = files.length,
packages = {};
-
+
//
// Otherwise find all files in the directory tree
// and attempt to run `analyzer.file()` on each of them
@@ -241,7 +241,7 @@ analyzer.dir = function (options, callback) {
//
// skip all files from 'node_modules' directories
//
- if(file === 'node_modules') return;
+ if(file === 'node_modules') return remaining--;
//
// call analyzer.path and currate all dependencies

0 comments on commit 873a641

Please sign in to comment.