aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/runtime_test.go
diff options
context:
space:
mode:
authorDaniel Martí <mvdan@mvdan.cc>2017-04-19 20:38:10 +0100
committerBrad Fitzpatrick <bradfitz@golang.org>2017-04-19 20:03:51 +0000
commitff7994ac1030525be5229a9f665d01ed50cd945e (patch)
tree4c326751a7ec56d3473e0f690c822aca87919bf6 /src/runtime/runtime_test.go
parent78510bd17c35932cd45f1433adb21aeaa0587767 (diff)
downloadgo-ff7994ac1030525be5229a9f665d01ed50cd945e.tar.xz
all: remove redundant returns
Returns at the end of func bodies where the funcs have no return values are pointless. Change-Id: I0da5ea78671503e41a9f56dd770df8c919310ce5 Reviewed-on: https://go-review.googlesource.com/41093 Run-TryBot: Daniel Martí <mvdan@mvdan.cc> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org>
Diffstat (limited to 'src/runtime/runtime_test.go')
-rw-r--r--src/runtime/runtime_test.go1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/runtime/runtime_test.go b/src/runtime/runtime_test.go
index 666bc0a546..e9bc256712 100644
--- a/src/runtime/runtime_test.go
+++ b/src/runtime/runtime_test.go
@@ -79,7 +79,6 @@ func defer1() {
panic("bad recover")
}
}(1, 2, 3)
- return
}
func BenchmarkDefer10(b *testing.B) {