mirror of
https://github.com/moby/moby.git
synced 2026-01-11 18:51:37 +00:00
integration/volume: remove redundant capturing of loop vars (copyloopvar)
integration/volume/volume_test.go:202:3: The copy of the 'for' variable "ep" can be deleted (Go 1.22+) (copyloopvar)
ep := ep
^
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
@@ -199,7 +199,6 @@ func TestVolumesInvalidJSON(t *testing.T) {
|
||||
endpoints := []string{"/volumes/create"}
|
||||
|
||||
for _, ep := range endpoints {
|
||||
ep := ep
|
||||
t.Run(ep[1:], func(t *testing.T) {
|
||||
t.Parallel()
|
||||
ctx := testutil.StartSpan(ctx, t)
|
||||
|
||||
Reference in New Issue
Block a user