From 201b9b41f98aa28d7d0ad223bf3614b78312690d Mon Sep 17 00:00:00 2001 From: Francis Lavoie Date: Tue, 31 Jan 2023 03:07:57 -0500 Subject: chore: Fix warning "range variable captured by func literal" (#5348) --- modules/caddyhttp/matchers_test.go | 1 + 1 file changed, 1 insertion(+) (limited to 'modules') 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() -- cgit v1.2.3