mirror of
https://github.com/minio/minio.git
synced 2025-02-25 12:29:15 -05:00
Merge pull request #363 from harshavardhana/pr_out_avoid_empty_if_else_body_
This commit is contained in:
commit
4d165dbcbb
@ -30,9 +30,7 @@ func NewDonut(root string) (Donut, *iodine.Error) {
|
|||||||
}
|
}
|
||||||
for _, bucketID := range bucketIDs {
|
for _, bucketID := range bucketIDs {
|
||||||
tokens := strings.Split(bucketID, ":")
|
tokens := strings.Split(bucketID, ":")
|
||||||
if _, ok := driver.buckets[tokens[0]]; ok {
|
if _, ok := driver.buckets[tokens[0]]; !ok {
|
||||||
// found bucket, skip creating
|
|
||||||
} else {
|
|
||||||
bucket := donutBucket{
|
bucket := donutBucket{
|
||||||
nodes: make([]string, 16),
|
nodes: make([]string, 16),
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user