Skip to content

Commit

Permalink
Update src/reports/iac_scan_report_processor.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Seth Vargo <seth@sethvargo.com>
Signed-off-by: pankhurisaxena28 <76627925+pankhurisaxena28@users.noreply.github.com>
  • Loading branch information
pankhurisaxena28 and sethvargo authored Jun 27, 2024
1 parent c36ef60 commit 9791419
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/reports/iac_scan_report_processor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ export class SarifReportGenerator implements ReportGenerator {
*/
generate(report: IACValidationReport): string {
const note: string = <string>report.note;
if (report.violations?.length == 0) {
if (report.violations?.length === 0) {
const sarifReport: SARIFTemplate = this.constructSARIFReport(<Rule[]>[], <Result[]>[], note);
return JSON.stringify(sarifReport, null, 2);
}
Expand Down

0 comments on commit 9791419

Please sign in to comment.