Browse code

integration/plugin/common: remove redundant capturing of loop vars (copyloopvar)

integration/plugin/common/plugin_test.go:46:3: The copy of the 'for' variable "ep" can be deleted (Go 1.22+) (copyloopvar)
ep := ep
^

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>

Sebastiaan van Stijn authored on 2024/11/12 21:27:40
Showing 1 changed files
... ...
@@ -43,7 +43,6 @@ func TestPluginInvalidJSON(t *testing.T) {
43 43
 	}
44 44
 
45 45
 	for _, ep := range endpoints {
46
-		ep := ep
47 46
 		t.Run(ep[1:], func(t *testing.T) {
48 47
 			t.Parallel()
49 48