Skip to content

Commit

Permalink
Remove trivial UNKNOWN check
Browse files Browse the repository at this point in the history
  • Loading branch information
Philipp Tusch committed Sep 3, 2015
1 parent efe23d9 commit faf8ffd
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -147,10 +147,9 @@ exports.init = function(options, callback) {
}
if (data[item]) {
if (options.onlyunknown) {
if (data[item].licenses && data[item].licenses !== UNKNOWN) {
if (data[item].licenses.indexOf('*') > -1) {
sorted[item] = data[item];
}
if (data[item].licenses.indexOf('*') > -1 ||
data[item].licenses.indexOf('UNKNOWN') > -1) {
sorted[item] = data[item];
}
} else {
sorted[item] = data[item];
Expand Down

0 comments on commit faf8ffd

Please sign in to comment.