Skip to content

Commit

Permalink
remove custom status check
Browse files Browse the repository at this point in the history
  • Loading branch information
kajes committed May 21, 2024
1 parent d67392c commit f153f9d
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions pkg/appliance/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -338,13 +338,10 @@ func (a *Appliance) UpgradeSwitchPartition(ctx context.Context, id string) error

func (a *Appliance) ApplianceSwitchPartition(ctx context.Context, id string) error {
req := a.APIClient.ApplianceApi.AppliancesIdSwitchPartitionPost(ctx, id).Authorization(a.Token)
response, err := req.Execute()
_, err := req.Execute()
if err != nil {
return err
}
if response.StatusCode >= 400 {
return api.HTTPErrorResponse(response, fmt.Errorf("unexpected response: %s", response.Status))
}
return nil
}

Expand Down

0 comments on commit f153f9d

Please sign in to comment.