mirror of
https://github.com/taigrr/wtf
synced 2025-01-18 04:03:14 -08:00
[several modules] Close the response body (#1040)
This commit is contained in:
@@ -50,6 +50,7 @@ func rollbarItemRequest(accessToken, assignedToName string, activeOnly bool) (*h
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
defer func() { _ = resp.Body.Close() }()
|
||||
|
||||
if resp.StatusCode < 200 || resp.StatusCode > 299 {
|
||||
return nil, fmt.Errorf(resp.Status)
|
||||
|
||||
Reference in New Issue
Block a user