Skip to content

Commit d91d049

Browse files
committed
test: fix loopclosure problem detected by golangci-lint-v1.63
Closes #1081
1 parent 32066c7 commit d91d049

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

cli/config/single_or_array_test.go

+2
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ type singleOrArrayCase[T any] struct {
1919

2020
func testSingleOrArrayJSON[T any](t *testing.T, tests []singleOrArrayCase[T]) {
2121
for _, tt := range tests {
22+
tt := tt
2223
t.Run(tt.name, func(t *testing.T) {
2324
t.Parallel()
2425

@@ -148,6 +149,7 @@ func TestSingleOrArrayJSON(t *testing.T) {
148149

149150
func testSingleOrArrayYAML[T any](t *testing.T, tests []singleOrArrayCase[T]) {
150151
for _, tt := range tests {
152+
tt := tt
151153
t.Run(tt.name, func(t *testing.T) {
152154
t.Parallel()
153155

0 commit comments

Comments
 (0)