From b3c3a8d6f2b2116e657e839c034ca58a0eebb435 Mon Sep 17 00:00:00 2001 From: Harshavardhana Date: Wed, 25 Mar 2015 00:17:38 -0700 Subject: [PATCH] Avoid empty if else body.. --- pkg/storage/donut/donut.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/pkg/storage/donut/donut.go b/pkg/storage/donut/donut.go index 3ff320c1e..a22c6def5 100644 --- a/pkg/storage/donut/donut.go +++ b/pkg/storage/donut/donut.go @@ -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), }