mirror of
https://github.com/caddyserver/caddy.git
synced 2024-12-16 21:56:40 -05:00
chore: Fix warning "range variable captured by func literal" (#5348)
This commit is contained in:
parent
0a3efd1641
commit
201b9b41f9
1 changed files with 1 additions and 0 deletions
|
@ -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 a new issue