Merge pull request #363 from harshavardhana/pr_out_avoid_empty_if_else_body_

This commit is contained in:
Harshavardhana 2015-03-25 00:24:59 -07:00
commit 4d165dbcbb

View File

@ -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),
}