Skip to content

Commit

Permalink
removed senseless check in analyzer.dir
Browse files Browse the repository at this point in the history
a folder should never contain a file that has the folder's path as it's
name
  • Loading branch information
fb55 committed Sep 8, 2012
1 parent b3e2bb9 commit 49b2d44
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/require-analyzer.js
Expand Up @@ -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);
}

Expand Down

0 comments on commit 49b2d44

Please sign in to comment.