Skip to content

Commit

Permalink
Remove unused filter option (never used)
Browse files Browse the repository at this point in the history
  • Loading branch information
Philipp Tusch committed Sep 9, 2015
1 parent 83caa10 commit 0fe7561
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ var flatten = function(options) {
colorize = options.color,
unknown = options.unknown,
licenseData, files = [], licenseFile;


/*istanbul ignore next*/
if (colorize) {
moduleInfo = { licenses: chalk.bold.red(UNKNOWN) };
Expand Down Expand Up @@ -126,9 +126,6 @@ var flatten = function(options) {
Object.keys(json.dependencies).forEach(function(name) {
var childDependency = json.dependencies[name],
dependencyId = childDependency.name + '@' + childDependency.version;
if (options.filter && options.filter(name, childDependency)) {
return;
}
if (data[dependencyId]) { // already exists
return;
}
Expand Down Expand Up @@ -157,9 +154,10 @@ exports.init = function(options, callback) {
data: {},
color: options.color,
unknown: options.unknown,
customFormat: options.customFormat,
filter: options.filter
customFormat: options.customFormat
}),


colorize = options.color,
sorted = {},
filtered = {},
Expand Down

0 comments on commit 0fe7561

Please sign in to comment.