aboutsummaryrefslogtreecommitdiff
path: root/src/encoding/csv/reader.go
diff options
context:
space:
mode:
authorDaniel Martí <mvdan@mvdan.cc>2017-10-20 11:56:31 +0100
committerDaniel Martí <mvdan@mvdan.cc>2017-10-22 15:50:50 +0000
commit006bc57095e7b1221ecc292735a510a52a27292c (patch)
tree3980ce4405c2a4ba6f3b470ca28d32017280081c /src/encoding/csv/reader.go
parent7092a312e5651c31e4a075503b0f5799371ceef9 (diff)
downloadgo-006bc57095e7b1221ecc292735a510a52a27292c.tar.xz
cmd/compile: clean up various bits of code
* replace a copy of IsMethod with a call of it. * a few more switches where they simplify the code. * prefer composite literals over "n := new(...); n.x = y; ...". * use defers to get rid of three goto labels. * rewrite updateHasCall into two funcs to remove gotos. Passes toolstash-check on std cmd. Change-Id: Icb5442a89a87319ef4b640bbc5faebf41b193ef1 Reviewed-on: https://go-review.googlesource.com/72070 Run-TryBot: Daniel Martí <mvdan@mvdan.cc> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Matthew Dempsky <mdempsky@google.com>
Diffstat (limited to 'src/encoding/csv/reader.go')
0 files changed, 0 insertions, 0 deletions