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:
@@ -39,6 +39,7 @@ func (widget *Widget) Create(jenkinsURL string, username string, apiKey string)
|
||||
if err != nil {
|
||||
return view, err
|
||||
}
|
||||
defer func() { _ = resp.Body.Close() }()
|
||||
|
||||
err = utils.ParseJSON(view, resp.Body)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user