From 97914198ca164537cb5baa71016faea2125216f5 Mon Sep 17 00:00:00 2001 From: pankhurisaxena28 <76627925+pankhurisaxena28@users.noreply.github.com> Date: Thu, 27 Jun 2024 22:43:00 +0530 Subject: [PATCH] Update src/reports/iac_scan_report_processor.ts Co-authored-by: Seth Vargo Signed-off-by: pankhurisaxena28 <76627925+pankhurisaxena28@users.noreply.github.com> --- src/reports/iac_scan_report_processor.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/reports/iac_scan_report_processor.ts b/src/reports/iac_scan_report_processor.ts index e86fb9e..a611d56 100644 --- a/src/reports/iac_scan_report_processor.ts +++ b/src/reports/iac_scan_report_processor.ts @@ -81,7 +81,7 @@ export class SarifReportGenerator implements ReportGenerator { */ generate(report: IACValidationReport): string { const note: string = report.note; - if (report.violations?.length == 0) { + if (report.violations?.length === 0) { const sarifReport: SARIFTemplate = this.constructSARIFReport([], [], note); return JSON.stringify(sarifReport, null, 2); }