summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorFrancis Lavoie <lavofr@gmail.com>2023-01-31 03:07:57 -0500
committerGitHub <noreply@github.com>2023-01-31 03:07:57 -0500
commit201b9b41f98aa28d7d0ad223bf3614b78312690d (patch)
tree860db08a9d89114517d3a29ed8ed9b81de90e513 /modules
parent0a3efd1641f07ceaa2035cedec1ba43448b2d520 (diff)
chore: Fix warning "range variable captured by func literal" (#5348)
Diffstat (limited to 'modules')
-rw-r--r--modules/caddyhttp/matchers_test.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/caddyhttp/matchers_test.go b/modules/caddyhttp/matchers_test.go
index 4d5538c..4f5da69 100644
--- a/modules/caddyhttp/matchers_test.go
+++ b/modules/caddyhttp/matchers_test.go
@@ -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()