Fix linter issues for golangci-lint 1.54.2

Signed-off-by: Kohei Tokunaga <ktokunaga.mail@gmail.com>
This commit is contained in:
Kohei Tokunaga
2023-10-03 21:56:47 +09:00
parent 28fa2751f2
commit 6169433b6b
11 changed files with 11 additions and 6 deletions

View File

@@ -619,6 +619,7 @@ func TestContainersCreateUpdateDelete(t *testing.T) {
},
},
} {
testcase := testcase
t.Run(testcase.name, func(t *testing.T) {
testcase.original.ID = testcase.name
if testcase.input.ID == "" {

View File

@@ -479,6 +479,7 @@ func TestImagesCreateUpdateDelete(t *testing.T) {
cause: errdefs.ErrNotFound,
},
} {
testcase := testcase
t.Run(testcase.name, func(t *testing.T) {
testcase.original.Name = testcase.name
if testcase.input.Name == "" {