happy linting
This commit is contained in:
parent
a5499b2810
commit
9d2452633c
@ -52,11 +52,7 @@ func TestAllow(t *testing.T) {
|
|||||||
allow.ServeHTTP(w, req)
|
allow.ServeHTTP(w, req)
|
||||||
|
|
||||||
resp := w.Result()
|
resp := w.Result()
|
||||||
t.Cleanup(func() { resp.Body.Close() })
|
defer resp.Body.Close()
|
||||||
|
|
||||||
t.Cleanup(func() {
|
|
||||||
resp.Body.Close()
|
|
||||||
})
|
|
||||||
|
|
||||||
body, _ := io.ReadAll(resp.Body)
|
body, _ := io.ReadAll(resp.Body)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user