diff options
| author | Tobias Klauser <tklauser@distanz.ch> | 2025-10-14 11:40:26 +0200 |
|---|---|---|
| committer | Gopher Robot <gobot@golang.org> | 2025-10-17 13:10:27 -0700 |
| commit | b5aefe07e5afe2fd5d49c6a4219cc826b3e4e34e (patch) | |
| tree | 3b3576e22ccc48d21f106c65d3bd10f368aaabf6 /src/path/filepath/path_test.go | |
| parent | 5137c473b64cb157380eb6deb1b60bf6780402b3 (diff) | |
| download | go-b5aefe07e5afe2fd5d49c6a4219cc826b3e4e34e.tar.xz | |
all: remove unnecessary loop variable copies in tests
Copying the loop variable is no longer necessary since Go 1.22.
Change-Id: Iebb21dac44a20ec200567f1d786f105a4ee4999d
Reviewed-on: https://go-review.googlesource.com/c/go/+/711640
Reviewed-by: Florian Lehner <lehner.florian86@gmail.com>
Auto-Submit: Damien Neil <dneil@google.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Reviewed-by: Damien Neil <dneil@google.com>
Auto-Submit: Tobias Klauser <tobias.klauser@gmail.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Diffstat (limited to 'src/path/filepath/path_test.go')
| -rw-r--r-- | src/path/filepath/path_test.go | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/path/filepath/path_test.go b/src/path/filepath/path_test.go index efdb3c6035..ad99f70287 100644 --- a/src/path/filepath/path_test.go +++ b/src/path/filepath/path_test.go @@ -936,7 +936,6 @@ func TestWalkSymlinkRoot(t *testing.T) { buggyGOOS: []string{"darwin", "ios"}, // https://go.dev/issue/59586 }, } { - tt := tt t.Run(tt.desc, func(t *testing.T) { var walked []string err := filepath.Walk(tt.root, func(path string, info fs.FileInfo, err error) error { |
