Skip to content

Commit

Permalink
internal/vulncheck: refactor a loop with an append
Browse files Browse the repository at this point in the history
This makes staticcheck happy and resolves builders' failures.

Change-Id: I90c0aa18ee7ca35fd18879d1d4dd5b6c9b0bcfa1
Reviewed-on: https://go-review.googlesource.com/c/vuln/+/560335
Run-TryBot: Zvonimir Pavlinovic <zpavlinovic@google.com>
Reviewed-by: Maceo Thompson <maceothompson@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
  • Loading branch information
zpavlinovic committed Feb 5, 2024
1 parent 7c69309 commit 95961a4
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions internal/vulncheck/binary.go
Original file line number Diff line number Diff line change
Expand Up @@ -159,9 +159,7 @@ func allKnownVulnerableSymbols(affVulns affectingVulns) map[string][]string {
syms = []string{fmt.Sprintf("%s/*", p.Path)}
}

for _, symbol := range syms {
pkgSymbols[p.Path] = append(pkgSymbols[p.Path], symbol)
}
pkgSymbols[p.Path] = append(pkgSymbols[p.Path], syms...)
}
}
}
Expand Down

0 comments on commit 95961a4

Please sign in to comment.