Skip to content

Commit

Permalink
fix: scanner payload & teardown after failure (#432)
Browse files Browse the repository at this point in the history
fix #431
  • Loading branch information
ErwanRaulo authored Dec 25, 2024
1 parent 67eefeb commit c55c20e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion bin/commands/execute.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ export async function execute(options = {}) {
})
.catch((error) => {
console.error(error);
process.exit(0);
})
.finally(teardown);
});
Expand Down
2 changes: 1 addition & 1 deletion src/analysis/extractScannerData.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ export async function buildStatsFromNsecurePayloads(payloadFiles = [], options =
if (curr.versions.has(localVersion)) {
continue;
}
const { flags, size, composition, uniqueLicenseIds, author, warnings = [], links } = localDescriptor;
const { flags, size, composition, uniqueLicenseIds, author, warnings = [], links = [] } = localDescriptor;

stats.size.all += size;
stats.size[isThird ? "external" : "internal"] += size;
Expand Down

0 comments on commit c55c20e

Please sign in to comment.