From 95531ff61903d2bbe050417aed917815f4a12828 Mon Sep 17 00:00:00 2001 From: Arjun Chikara Date: Wed, 30 Oct 2024 18:29:45 +0530 Subject: [PATCH] Added severity to passes result also --- lib/core/utils/aggregate-checks.js | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/lib/core/utils/aggregate-checks.js b/lib/core/utils/aggregate-checks.js index ef62e97df..48a5226eb 100644 --- a/lib/core/utils/aggregate-checks.js +++ b/lib/core/utils/aggregate-checks.js @@ -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 => {