happy linting

This commit is contained in:
Marvin Preuss 2022-01-31 09:13:28 +01:00
parent a5499b2810
commit 9d2452633c

View File

@ -52,11 +52,7 @@ func TestAllow(t *testing.T) {
allow.ServeHTTP(w, req)
resp := w.Result()
t.Cleanup(func() { resp.Body.Close() })
t.Cleanup(func() {
resp.Body.Close()
})
defer resp.Body.Close()
body, _ := io.ReadAll(resp.Body)