caddyhttp: omit unnecessary reassignment (#7276)

Signed-off-by: asttool <asttool@outlook.com>
This commit is contained in:
asttool 2025-09-27 00:44:58 +08:00 committed by GitHub
parent 1e82f9652e
commit bc0e184130
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -992,7 +992,6 @@ func TestVarREMatcher(t *testing.T) {
expect: true,
},
} {
tc := tc // capture range value
t.Run(tc.desc, func(t *testing.T) {
t.Parallel()
// compile the regexp and validate its name