Browse code

api/server/httputils: remove redundant capturing of loop vars (copyloopvar)

api/server/httputils/form_test.go:152:3: The copy of the 'for' variable "tc" can be deleted (Go 1.22+) (copyloopvar)
tc := tc
^

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

Sebastiaan van Stijn authored on 2024/11/12 21:03:59
Showing 1 changed files
... ...
@@ -149,7 +149,6 @@ func TestUint32Value(t *testing.T) {
149 149
 		},
150 150
 	}
151 151
 	for _, tc := range tests {
152
-		tc := tc
153 152
 		t.Run(tc.value, func(t *testing.T) {
154 153
 			r, _ := http.NewRequest(http.MethodPost, "", nil)
155 154
 			r.Form = url.Values{}