Skip to content

Commit

Permalink
fix: safely check for vuln info
Browse files Browse the repository at this point in the history
  • Loading branch information
lili2311 committed Oct 18, 2019
1 parent e0037d7 commit 840108b
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -189,8 +189,10 @@ function constructPatchesText(
return [];
}
const patchedTextArray = [chalk.bold.green('\nPatchable issues:')];

for (const id of Object.keys(patches)) {
if (!basicVulnInfo[id]) {
continue;
}
if (basicVulnInfo[id].type === 'license') {
continue;
}
Expand Down

0 comments on commit 840108b

Please sign in to comment.