Fast and extensible multi-platform HTTP/1-2-3 web server with automatic HTTPS
Mirrored from https://github.com/Slazee/caddy.git
Synced Nov 11, 21:00 UTC
caddyhttp: omit unnecessary reassignment (#7276)
Signed-off-by: asttool <asttool@outlook.com>
asttool committed
Sep 27, 2025 at 00:44 UTC
bc0e1841305b2cc82aeaf9953e527d9819a88c83
1 file changed
-1
modules/caddyhttp/matchers_test.go
-1
@@ -992,7 +992,6 @@ func TestVarREMatcher(t *testing.T) {
992
expect: true,
993
},
994
} {
995
- tc := tc // capture range value
995
t.Run(tc.desc, func(t *testing.T) {
996
t.Parallel()
997
// compile the regexp and validate its name