From 88b778cbd421db073ba5763e6407115c22963f1a Mon Sep 17 00:00:00 2001 From: David Abutbul Date: Mon, 16 Feb 2026 18:34:12 +0200 Subject: [PATCH] Refactor finding comparison logic in render_report.mjs to simplify equality checks --- skills/openclaw-audit-watchdog/scripts/render_report.mjs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/skills/openclaw-audit-watchdog/scripts/render_report.mjs b/skills/openclaw-audit-watchdog/scripts/render_report.mjs index 1d60659..7a7f22a 100755 --- a/skills/openclaw-audit-watchdog/scripts/render_report.mjs +++ b/skills/openclaw-audit-watchdog/scripts/render_report.mjs @@ -222,7 +222,7 @@ const { active: activeFindings, suppressed: suppressedFindings } = filterFinding // Replace findings in audit/deep with filtered active findings if (audit.findings) { audit.findings = activeFindings.filter((f) => - (audit.findings || []).some((orig) => orig === f || JSON.stringify(orig) === JSON.stringify(f)) + (audit.findings || []).some((orig) => orig === f) ); // Recalculate summary counts after filtering audit.summary = { @@ -233,7 +233,7 @@ if (audit.findings) { } if (deep.findings) { deep.findings = activeFindings.filter((f) => - (deep.findings || []).some((orig) => orig === f || JSON.stringify(orig) === JSON.stringify(f)) + (deep.findings || []).some((orig) => orig === f) ); // Recalculate summary counts after filtering deep.summary = {