Skip to content

Commit

Permalink
[fix] call callback when a node_modules folder is present
Browse files Browse the repository at this point in the history
  • Loading branch information
fb55 committed Sep 8, 2012
1 parent eeebe3a commit 873a641
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/require-analyzer.js
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 873a641

Please sign in to comment.