Skip to content

Commit

Permalink
Probably not necessary to close these as they're short-lived.
Browse files Browse the repository at this point in the history
  • Loading branch information
ndarilek committed Jul 16, 2024
1 parent 3c89354 commit 9c23529
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions cmd/flexctl/backups.go
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,6 @@ func newConfigShowCmd() *cobra.Command {
if err != nil {
return err
}
defer resp.Body.Close()

var rv configShowResult
err = json.NewDecoder(resp.Body).Decode(&rv)
Expand Down Expand Up @@ -304,7 +303,6 @@ func newConfigUpdateCmd() *cobra.Command {
if err != nil {
return err
}
defer resp.Body.Close()

var rv configUpdateResult
err = json.NewDecoder(resp.Body).Decode(&rv)
Expand Down

0 comments on commit 9c23529

Please sign in to comment.