chore: Fix warning "range variable captured by func literal" (#5348)

This commit is contained in:
Francis Lavoie 2023-01-31 03:07:57 -05:00 committed by GitHub
parent 0a3efd1641
commit 201b9b41f9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -929,6 +929,7 @@ func TestVarREMatcher(t *testing.T) {
expect: true,
},
} {
i := i // capture range value
tc := tc // capture range value
t.Run(tc.desc, func(t *testing.T) {
t.Parallel()