Skip to content

Commit

Permalink
fix async report format summaryJson (#588)
Browse files Browse the repository at this point in the history
  • Loading branch information
igorlombacx authored Sep 29, 2023
1 parent aa00fe5 commit f4271fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/commands/result.go
Original file line number Diff line number Diff line change
Expand Up @@ -858,7 +858,7 @@ func createReport(format,
convertNotAvailableNumberToZero(summary)
return writeHTMLSummary(summaryRpt, summary)
}
if printer.IsFormat(format, printer.FormatSummaryJSON) && isValidScanStatus(summary.Status, printer.FormatSummaryJSON) {
if printer.IsFormat(format, printer.FormatSummaryJSON) {
summaryRpt := createTargetName(targetFile, targetPath, printer.FormatJSON)
convertNotAvailableNumberToZero(summary)
return exportJSONSummaryResults(summaryRpt, summary)
Expand Down

0 comments on commit f4271fe

Please sign in to comment.