Skip to content

Commit

Permalink
test: fix loopclosure problem detected by golangci-lint-v1.63
Browse files Browse the repository at this point in the history
Closes #1081
  • Loading branch information
elhimov authored and oleg-jukovec committed Jan 13, 2025
1 parent 545d1ea commit d8b6998
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cli/config/single_or_array_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ type singleOrArrayCase[T any] struct {

func testSingleOrArrayJSON[T any](t *testing.T, tests []singleOrArrayCase[T]) {
for _, tt := range tests {
tt := tt
t.Run(tt.name, func(t *testing.T) {
t.Parallel()

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

func testSingleOrArrayYAML[T any](t *testing.T, tests []singleOrArrayCase[T]) {
for _, tt := range tests {
tt := tt
t.Run(tt.name, func(t *testing.T) {
t.Parallel()

Expand Down

0 comments on commit d8b6998

Please sign in to comment.