]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/compile: simplify range expression
authorTobias Klauser <tklauser@distanz.ch>
Mon, 18 Sep 2017 13:20:31 +0000 (15:20 +0200)
committerIan Lance Taylor <iant@golang.org>
Tue, 19 Sep 2017 00:29:58 +0000 (00:29 +0000)
Found by running gofmt -s on the file in question.

Change-Id: I84511bd2bc75dff196930a7a87ecf5a2aca2fbb8
Reviewed-on: https://go-review.googlesource.com/64310
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>

src/cmd/compile/internal/gc/dcl.go

index 6ffc3475d2cf9d2fb4bea1e01ab4d8b9db260519..66caf2d943c3c814cdbf886ba933cf9e867118dd 100644 (file)
@@ -1137,7 +1137,7 @@ func checknowritebarrierrec() {
                // the recursive case, we have to update this at most
                // len(list) times and can stop when we an iteration
                // that doesn't change anything.
-               for _ = range list {
+               for range list {
                        c.stable = false
                        for _, n := range list {
                                if n.Func.Pragma&Yeswritebarrierrec != 0 {