mirror of https://github.com/minio/minio.git
simplify bucketInfo return in GetBucketInfo peer call (#16983)
This commit is contained in:
parent
111c7d4026
commit
0320ac43cb
|
@ -169,14 +169,7 @@ func (sys *S3PeerSys) GetBucketInfo(ctx context.Context, bucket string, opts Buc
|
|||
if err = reduceReadQuorumErrs(ctx, errs, bucketOpIgnoredErrs, quorum); err != nil {
|
||||
return BucketInfo{}, toObjectErr(err, bucket)
|
||||
}
|
||||
|
||||
for i, err := range errs {
|
||||
if err == nil {
|
||||
bucketInfo = bucketInfos[i]
|
||||
break
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
return bucketInfo, nil
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue