internal/scan: print the summary even when there are no findings
Fixes golang/go#61328
Change-Id: Ie1099cf1e55665d82b40da7c91a3edf6c55f6ab6
Reviewed-on: https://go-review.googlesource.com/c/vuln/+/508920
Reviewed-by: Julie Qiu <julieqiu@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Ian Cottrell <iancottrell@google.com>
Auto-Submit: Ian Cottrell <iancottrell@google.com>
diff --git a/internal/scan/text.go b/internal/scan/text.go
index fd30189..51e7bf4 100644
--- a/internal/scan/text.go
+++ b/internal/scan/text.go
@@ -69,9 +69,6 @@
}
func (h *TextHandler) Flush() error {
- if len(h.findings) == 0 {
- return nil
- }
fixupFindings(h.osvs, h.findings)
h.byVulnerability(h.findings)
h.summary(h.findings)