Skip to content

Commit

Permalink
Style fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
ndarilek committed Jul 16, 2024
1 parent 74d382d commit 1bf8a12
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions cmd/flexctl/backups.go
Original file line number Diff line number Diff line change
Expand Up @@ -255,8 +255,7 @@ func newConfigShowCmd() *cobra.Command {
}

var rv configShowResult
err = json.NewDecoder(resp.Body).Decode(&rv)
if err != nil {
if err := json.NewDecoder(resp.Body).Decode(&rv); err != nil {
return err
}

Expand Down Expand Up @@ -328,8 +327,7 @@ func newConfigUpdateCmd() *cobra.Command {
}

var rv configUpdateResult
err = json.NewDecoder(resp.Body).Decode(&rv)
if err != nil {
if err := json.NewDecoder(resp.Body).Decode(&rv); err != nil {
return err
}

Expand Down

0 comments on commit 1bf8a12

Please sign in to comment.