Skip to content

Commit

Permalink
cmd/govulncheck: clean up test
Browse files Browse the repository at this point in the history
staticcheck was complaining

Change-Id: I67c965b01f67ea907fdb5fa9b7a37447a49b9bde
Reviewed-on: https://go-review.googlesource.com/c/vuln/+/575135
Run-TryBot: Zvonimir Pavlinovic <zpavlinovic@google.com>
Reviewed-by: Ian Cottrell <iancottrell@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
  • Loading branch information
zpavlinovic committed Mar 28, 2024
1 parent efaa3ce commit 9fbf042
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/govulncheck/test_utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ func loadConfig(path string) (*config, error) {
if err := json.Unmarshal(b, &cfg); err != nil {
return nil, err
}
for i, _ := range cfg.Fixups {
for i := range cfg.Fixups {
cfg.Fixups[i].init()
}
return &cfg, nil
Expand Down

0 comments on commit 9fbf042

Please sign in to comment.