Skip to content

Commit

Permalink
Merge pull request #1029 from testwill/close_body
Browse files Browse the repository at this point in the history
fix: close resp body
  • Loading branch information
89luca89 authored Apr 26, 2024
2 parents 4ab6aed + c0ee638 commit 554cd37
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cmd/provider/list-default-providers.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ func getDevpodProviderList() error {
if err != nil {
return err
}
defer resp.Body.Close()

result, err := io.ReadAll(resp.Body)
if err != nil {
Expand Down

0 comments on commit 554cd37

Please sign in to comment.