]> Cypherpunks repositories - gostls13.git/commit
all: remove unnecessary ", _" from map reads
authorDaniel Martí <mvdan@mvdan.cc>
Tue, 18 Apr 2017 11:32:05 +0000 (12:32 +0100)
committerBrad Fitzpatrick <bradfitz@golang.org>
Tue, 18 Apr 2017 15:29:10 +0000 (15:29 +0000)
commitbdf746caaa23ccf2bc7b7e2e123349133ce001a6
tree18bb0eea03f5867c5f3c225d94dc9502213cc52b
parentaf5c95117b26e22d942a12e15bdc8e25607f738c
all: remove unnecessary ", _" from map reads

If the bool value isn't used, there is no need to assign to underscore -
there is a shorter form that only returns the value and behaves in the
exact same way.

Change-Id: Iaf801b8e966da6c2f565bc39e3bb028175c92d60
Reviewed-on: https://go-review.googlesource.com/40920
Run-TryBot: Daniel Martí <mvdan@mvdan.cc>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/go/types/api.go
src/net/http/transport.go
src/net/internal/socktest/sys_cloexec.go
src/net/internal/socktest/sys_unix.go