diff options
| author | Ryan Leung <rleungx@gmail.com> | 2021-11-23 03:00:32 +0000 |
|---|---|---|
| committer | Gopher Robot <gobot@golang.org> | 2022-05-08 17:27:54 +0000 |
| commit | dd8d425fedd88970a7ee79e908eb47f6d1fcdcad (patch) | |
| tree | 053018dbeb61dff1c4b8911cd59f15dea6d7f883 /src/testing | |
| parent | df57592276bc26e2eb4e4ca5e77e4e2e422c7c6b (diff) | |
| download | go-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.go | 2 |
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 }) |
