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 committed Oct 20, 2023
1 parent bdc7cca commit d6deb67
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 @@ -859,7 +859,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 d6deb67

Please sign in to comment.