Permalink
Browse files

removed senseless check in analyzer.dir

a folder should never contain a file that has the folder's path as it's
name
  • Loading branch information...
1 parent b3e2bb9 commit 49b2d4464c1d823825ce7d0035d76324932c3f99 @fb55 fb55 committed Sep 8, 2012
Showing with 1 addition and 3 deletions.
  1. +1 −3 lib/require-analyzer.js
View
4 lib/require-analyzer.js
@@ -225,9 +225,7 @@ analyzer.dir = function (options, callback) {
// If there is a package.json in the directory
// then analyze the require(s) based on `package.main`
//
- if (files.indexOf('package.json') !== -1 ||
- (options.target && files.indexOf(options.target) !== -1) // TODO undestand this
- ) {
+ if (files.indexOf('package.json') !== -1) {
return analyzer.package(options, callback);
}

0 comments on commit 49b2d44

Please sign in to comment.