diff --git a/internal/commands/result.go b/internal/commands/result.go index 0c8e5e5af..f69653890 100644 --- a/internal/commands/result.go +++ b/internal/commands/result.go @@ -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)