From 9c2352993c18be185754db7b7db875906a3537b4 Mon Sep 17 00:00:00 2001 From: Nolan Darilek Date: Tue, 16 Jul 2024 10:54:25 -0500 Subject: [PATCH] Probably not necessary to close these as they're short-lived. --- cmd/flexctl/backups.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/cmd/flexctl/backups.go b/cmd/flexctl/backups.go index 06a64ff..cfac979 100644 --- a/cmd/flexctl/backups.go +++ b/cmd/flexctl/backups.go @@ -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) @@ -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)