Skip to content

Commit 2dd8d10

Browse files
ianthehatjulieqiu
authored andcommitted
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>
1 parent 76e9546 commit 2dd8d10

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

internal/scan/text.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,6 @@ func Flush(h govulncheck.Handler) error {
6969
}
7070

7171
func (h *TextHandler) Flush() error {
72-
if len(h.findings) == 0 {
73-
return nil
74-
}
7572
fixupFindings(h.osvs, h.findings)
7673
h.byVulnerability(h.findings)
7774
h.summary(h.findings)

0 commit comments

Comments
 (0)