Enable bodyclose linter

Signed-off-by: Milos Gajdos <milosthegajdos@gmail.com>
This commit is contained in:
Milos Gajdos 2023-08-19 09:16:02 +01:00
parent 597e8a6b34
commit 3dbfbc7255
No known key found for this signature in database
GPG key ID: 01300E5E6D417439
11 changed files with 87 additions and 15 deletions

View file

@ -118,6 +118,7 @@ func TestGracefulShutdown(t *testing.T) {
if err != nil {
t.Fatal(err)
}
defer resp.Body.Close()
if resp.Status != "200 OK" {
t.Error("response status is not 200 OK: ", resp.Status)
}
@ -313,6 +314,7 @@ func TestRegistrySupportedCipherSuite(t *testing.T) {
if err != nil {
t.Fatal(err)
}
defer resp.Body.Close()
if resp.Status != "200 OK" {
t.Error("response status is not 200 OK: ", resp.Status)
}