diff --git a/cmd/root.go b/cmd/root.go index d9bc5157..751fb7f0 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -378,7 +378,7 @@ func findingSummaryAndExit(detector *detect.Detector, findings []report.Finding, } // write report if desired - if detector.Reporter != nil && len(findings) > 0 { + if detector.Reporter != nil { var ( file io.WriteCloser reportErr error