Skip to content

Commit

Permalink
Added severity to passes result also
Browse files Browse the repository at this point in the history
  • Loading branch information
chikara1608 committed Oct 30, 2024
1 parent 60ba8d8 commit 95531ff
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions lib/core/utils/aggregate-checks.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,12 +67,7 @@ function aggregateChecks(nodeResOriginal) {
nodeResult[type].forEach(check => impacts.push(check.impact));
});

// for failed nodes, define the impact
if ([CANTTELL_PRIO, FAIL_PRIO].includes(nodeResult.priority)) {
nodeResult.impact = aggregate(constants.impact, impacts);
} else {
nodeResult.impact = null;
}
nodeResult.impact = aggregate(constants.impact, impacts);

// Delete the old result and priority properties
anyAllNone(nodeResult, c => {
Expand Down

0 comments on commit 95531ff

Please sign in to comment.