Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

[fix] call callback when a node_modules folder is present

  • Loading branch information...
commit 873a6412f7e2a29a134c6dc31d9d4ab4c8c13abc 1 parent eeebe3a
@fb55 fb55 authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/require-analyzer.js
View
4 lib/require-analyzer.js
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.