Skip to content

Commit

Permalink
refactor: initialize ignoredFindings as an array
Browse files Browse the repository at this point in the history
  • Loading branch information
jdew89 authored and alexjurkiewicz committed Mar 26, 2024
1 parent 31a2511 commit 328957a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ const main = async () => {
}

const allFindingsList = !!ignoreList.length ? await getAllFindings(ECR, repository, tag) : []; // only fetch all findings if we have an ignore list
let ignoredFindings;
let ignoredFindings = [];
if (isEnhancedScan(findings)) {
ignoredFindings = allFindingsList.filter(({ packageVulnerabilityDetails }) => ignoreList.includes(packageVulnerabilityDetails.vulnerabilityId));

Expand Down

0 comments on commit 328957a

Please sign in to comment.