aboutsummaryrefslogtreecommitdiff
path: root/src/testing
diff options
context:
space:
mode:
authorcuishuang <imcusg@gmail.com>2025-10-10 11:47:13 +0800
committerGopher Robot <gobot@golang.org>2025-10-10 14:38:27 -0700
commit584a89fe7455470b09643b30bdc3cc55bb75a552 (patch)
tree9966b2408323355a65ba9ef95018f6e3bfed86e6 /src/testing
parent69e82796322bbff60b522534a8a6eacb2bf1ebba (diff)
downloadgo-584a89fe7455470b09643b30bdc3cc55bb75a552.tar.xz
all: omit unnecessary reassignment
The new version of Go has been optimized, and variables do not need to be reassigned. Change-Id: I0374b049271e53510f2b162f6821fb3595f2c8ff Reviewed-on: https://go-review.googlesource.com/c/go/+/710835 Auto-Submit: Michael Pratt <mpratt@google.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Alan Donovan <adonovan@google.com> Reviewed-by: Michael Pratt <mpratt@google.com>
Diffstat (limited to 'src/testing')
-rw-r--r--src/testing/iotest/reader_test.go1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/testing/iotest/reader_test.go b/src/testing/iotest/reader_test.go
index 1d222372ca..cecfbfce49 100644
--- a/src/testing/iotest/reader_test.go
+++ b/src/testing/iotest/reader_test.go
@@ -238,7 +238,6 @@ func TestErrReader(t *testing.T) {
}
for _, tt := range cases {
- tt := tt
t.Run(tt.name, func(t *testing.T) {
n, err := ErrReader(tt.err).Read(nil)
if err != tt.err {