]> Cypherpunks repositories - gostls13.git/commit
go/types: remove nil check around range
authorDaniel Martí <mvdan@mvdan.cc>
Wed, 9 Aug 2017 07:24:14 +0000 (16:24 +0900)
committerDaniel Martí <mvdan@mvdan.cc>
Thu, 10 Aug 2017 12:17:11 +0000 (12:17 +0000)
commitd5ad7793d610bddfb3e7e09b8dafa0b0837f0cb2
tree6733a45b065c95209375dcd0bb48ab7f6cd74db7
parent5500c9ce27128ab26aa23bafddce7dd512ce72ea
go/types: remove nil check around range

Ranging over a nil slice is a no-op, so guarding it with a nil check is
not useful.

Found with honnef.co/go/tools/cmd/staticcheck.

Change-Id: I6ce56bb6805809ca29349257f10fd69c30611643
Reviewed-on: https://go-review.googlesource.com/54131
Run-TryBot: Daniel Martí <mvdan@mvdan.cc>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Robert Griesemer <gri@golang.org>
src/go/types/stmt.go