mirror of https://github.com/minio/minio.git
Avoid empty if else body..
This commit is contained in:
parent
029e49a7d2
commit
b3c3a8d6f2
|
@ -30,9 +30,7 @@ func NewDonut(root string) (Donut, *iodine.Error) {
|
|||
}
|
||||
for _, bucketID := range bucketIDs {
|
||||
tokens := strings.Split(bucketID, ":")
|
||||
if _, ok := driver.buckets[tokens[0]]; ok {
|
||||
// found bucket, skip creating
|
||||
} else {
|
||||
if _, ok := driver.buckets[tokens[0]]; !ok {
|
||||
bucket := donutBucket{
|
||||
nodes: make([]string, 16),
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue