0
Fork 0
mirror of https://github.com/caddyserver/caddy.git synced 2025-01-06 22:40:31 -05:00

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

View file

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