mirror of
https://github.com/caddyserver/caddy.git
synced 2025-11-01 13:08:32 +08:00
caddyhttp: omit unnecessary reassignment (#7276)
Signed-off-by: asttool <asttool@outlook.com>
This commit is contained in:
@ -992,7 +992,6 @@ func TestVarREMatcher(t *testing.T) {
|
|||||||
expect: true,
|
expect: true,
|
||||||
},
|
},
|
||||||
} {
|
} {
|
||||||
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()
|
||||||
// compile the regexp and validate its name
|
// compile the regexp and validate its name
|
||||||
|
|||||||
Reference in New Issue
Block a user