We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 748b879 commit bb21f6dCopy full SHA for bb21f6d
1 file changed
pkg/gitlab/client.go
@@ -125,6 +125,7 @@ func (c *Client) ReadinessCheck(ctx context.Context) healthcheck.Check {
125
if resp == nil {
126
return fmt.Errorf("HTTP error: empty response")
127
}
128
+ defer resp.Body.Close()
129
130
if err == nil && resp.StatusCode != http.StatusOK {
131
return fmt.Errorf("HTTP error: %d", resp.StatusCode)
0 commit comments