]> Cypherpunks repositories - gostls13.git/commit
all: unindent some if bodies by exiting early
authorDaniel Martí <mvdan@mvdan.cc>
Sat, 28 Oct 2017 16:35:27 +0000 (17:35 +0100)
committerDaniel Martí <mvdan@mvdan.cc>
Tue, 31 Oct 2017 20:07:46 +0000 (20:07 +0000)
commit7cb3e4fb1d6b2704ecdc3d6983587975ce077a34
treede4fe981bb9df8912617c91e068125f66479ae23
parent94484d8ed5155873306ab41f49b0b30be19031a9
all: unindent some if bodies by exiting early

All of these had a return or break in the else body, so flipping the
condition means we can unindent and simplify.

Change-Id: If93e97504480d18a0dac3f2c8ffe57ab8bcb929c
Reviewed-on: https://go-review.googlesource.com/74190
Run-TryBot: Daniel Martí <mvdan@mvdan.cc>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/cmd/compile/internal/gc/bexport.go
src/cmd/link/internal/ld/data.go
src/mime/mediatype.go
src/reflect/value.go
src/regexp/exec.go
src/text/tabwriter/tabwriter.go