aboutsummaryrefslogtreecommitdiff
path: root/src/testing
diff options
context:
space:
mode:
authorRyan Leung <rleungx@gmail.com>2021-11-23 03:00:32 +0000
committerGopher Robot <gobot@golang.org>2022-05-08 17:27:54 +0000
commitdd8d425fedd88970a7ee79e908eb47f6d1fcdcad (patch)
tree053018dbeb61dff1c4b8911cd59f15dea6d7f883 /src/testing
parentdf57592276bc26e2eb4e4ca5e77e4e2e422c7c6b (diff)
downloadgo-dd8d425fedd88970a7ee79e908eb47f6d1fcdcad.tar.xz
all: fix some lint issues
Make some code more simple. Change-Id: I801adf0dba5f6c515681345c732dbb907f945419 GitHub-Last-Rev: a505146baca00a1b3268d11d10510afa8cea6f1d GitHub-Pull-Request: golang/go#49626 Reviewed-on: https://go-review.googlesource.com/c/go/+/364634 Run-TryBot: Ian Lance Taylor <iant@google.com> Auto-Submit: Ian Lance Taylor <iant@google.com> Reviewed-by: Ian Lance Taylor <iant@google.com> Reviewed-by: Keith Randall <khr@golang.org> TryBot-Result: Gopher Robot <gobot@golang.org> Reviewed-by: David Chase <drchase@google.com>
Diffstat (limited to 'src/testing')
-rw-r--r--src/testing/sub_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/testing/sub_test.go b/src/testing/sub_test.go
index 6a5add6f4e..6324d463cf 100644
--- a/src/testing/sub_test.go
+++ b/src/testing/sub_test.go
@@ -724,7 +724,7 @@ func TestBenchmarkReadMemStatsBeforeFirstRun(t *T) {
var first = true
Benchmark(func(b *B) {
if first && (b.startAllocs == 0 || b.startBytes == 0) {
- panic(fmt.Sprintf("ReadMemStats not called before first run"))
+ panic("ReadMemStats not called before first run")
}
first = false
})