Skip to content

Commit

Permalink
Supress linter warning
Browse files Browse the repository at this point in the history
Signed-off-by: Vishwas Siravara <[email protected]>
  • Loading branch information
vsiravar committed Feb 28, 2023
1 parent 44007e6 commit 397a784
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions fnet/dial.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ func HTTPGetAndAssert(url string, want int, maxRetry int, retryInterval time.Dur
time.Sleep(retryInterval)
continue
}

//nolint:errcheck // not required to handle error for testing if resp.Body.Close() returns error
defer resp.Body.Close()
gomega.Expect(resp.StatusCode).To(gomega.Equal(want))
return
Expand Down

0 comments on commit 397a784

Please sign in to comment.