Skip to content

Commit

Permalink
chore: fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Karol Nowak committed Sep 18, 2024
1 parent 56e8e1b commit 4acc482
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions frontend_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,6 @@ func TestFrontend_Get(t *testing.T) {
}
}

//nolint:bodyclose // response might be nil so we cannot close the body
func TestContextDeadlineExceeded(t *testing.T) {
t.Parallel()

Expand Down Expand Up @@ -223,7 +222,11 @@ func loaderWithWaitingTime(ctx context.Context) (httpcache.Entry, error) {
}

client := &http.Client{}
_, err = client.Do(req)
resp, err := client.Do(req)

if resp != nil {
_ = resp.Body.Close()
}

if err != nil {
return httpcache.Entry{}, err
Expand Down

0 comments on commit 4acc482

Please sign in to comment.