Skip to content

Commit

Permalink
cmd/govulncheck: improve platform-specific printing comments
Browse files Browse the repository at this point in the history
Change-Id: I7e209403f8b1a4b8205555713f89dd4152e17d54
Reviewed-on: https://go-review.googlesource.com/c/vuln/+/460424
Run-TryBot: Zvonimir Pavlinovic <[email protected]>
TryBot-Result: Gopher Robot <[email protected]>
Reviewed-by: Jonathan Amsterdam <[email protected]>
Auto-Submit: Zvonimir Pavlinovic <[email protected]>
  • Loading branch information
softdev050 committed Jan 8, 2023
1 parent d1f77cf commit a214158
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions cmd/govulncheck/print.go
Original file line number Diff line number Diff line change
Expand Up @@ -155,8 +155,9 @@ func verboseCallStacks(css []govulncheck.CallStack) string {
return b.String()
}

// platforms returns a string describing the GOOS/GOARCH pairs that the vuln affects.
// If it affects all of them, it returns the empty string.
// platforms returns a string describing the GOOS, GOARCH,
// or GOOS/GOARCH pairs that the vuln affects. If it affects
// all of them, it returns the empty string.
func platforms(e *osv.Entry) string {
platforms := map[string]bool{}
for _, a := range e.Affected {
Expand Down

0 comments on commit a214158

Please sign in to comment.