Skip to content

Commit

Permalink
fix error returned by RemoveBucketReplication (#1655)
Browse files Browse the repository at this point in the history
  • Loading branch information
poornas committed May 26, 2022
1 parent 8b5b0be commit bae5ed9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions api-bucket-replication.go
Expand Up @@ -102,6 +102,9 @@ func (c *Client) removeBucketReplication(ctx context.Context, bucketName string)
if err != nil {
return err
}
if resp.StatusCode != http.StatusOK {
return httpRespToErrorResponse(resp, bucketName, "")
}
return nil
}

Expand Down

0 comments on commit bae5ed9

Please sign in to comment.