Skip to content

Commit

Permalink
internal/vulncheck: remove unnecessary assignment to the blank identi…
Browse files Browse the repository at this point in the history
…fier

This leads to slightly simpler code, and
fixes failing TestStaticCheck as reported by longtest builders.

Change-Id: I2631dec5ef657defcf9052cb5a3b48cc68feccd9
Reviewed-on: https://go-review.googlesource.com/c/vuln/+/505597
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Zvonimir Pavlinovic <zpavlinovic@google.com>
Auto-Submit: Dmitri Shuralyov <dmitshur@golang.org>
Run-TryBot: Dmitri Shuralyov <dmitshur@google.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
  • Loading branch information
dmitshur authored and gopherbot committed Jun 23, 2023
1 parent 9eaf6cb commit 8163a83
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/vulncheck/witness.go
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ func funcLess(f1, f2 *FuncNode) bool {
}

func filterCallStacks(callstacks map[*Vuln][]CallStack) {
for vv, _ := range callstacks {
for vv := range callstacks {
if vv.CallSink != nil {
if len(callstacks[vv]) > 0 {
callstacks[vv] = callstacks[vv][0:1]
Expand Down

0 comments on commit 8163a83

Please sign in to comment.