Skip to content

Commit

Permalink
Ignore invalid pkg
Browse files Browse the repository at this point in the history
  • Loading branch information
pocotan001 committed Apr 21, 2017
1 parent 204c905 commit 40fe814
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/licensify.js
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ module.exports = function licensify (b, opts) {
}

b.on('package', function (pkg) {
if (alreadyScanned(pkg)) {
if (!pkg.name || alreadyScanned(pkg)) {
return;
}

Expand Down

0 comments on commit 40fe814

Please sign in to comment.