mirror of
https://github.com/pgsty/minio.git
synced 2026-07-25 15:06:17 +03:00
cleanup ignored static analysis (#16767)
This commit is contained in:
@@ -104,8 +104,7 @@ func (c *OperatorDNS) Put(bucket string) error {
|
||||
var errorStringBuilder strings.Builder
|
||||
io.Copy(&errorStringBuilder, io.LimitReader(resp.Body, resp.ContentLength))
|
||||
errorString := errorStringBuilder.String()
|
||||
switch resp.StatusCode {
|
||||
case http.StatusConflict:
|
||||
if resp.StatusCode == http.StatusConflict {
|
||||
return ErrBucketConflict(Error{bucket, errors.New(errorString)})
|
||||
}
|
||||
return newError(bucket, fmt.Errorf("service create for bucket %s, failed with status %s, error %s", bucket, resp.Status, errorString))
|
||||
|
||||
Reference in New Issue
Block a user