mirror of https://github.com/caddyserver/caddy.git
chore: Fix warning "range variable captured by func literal" (#5348)
This commit is contained in:
parent
0a3efd1641
commit
201b9b41f9
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue