aboutsummaryrefslogtreecommitdiff
path: root/bucket.go
diff options
context:
space:
mode:
Diffstat (limited to 'bucket.go')
-rw-r--r--bucket.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/bucket.go b/bucket.go
index 511ce72..0c5bf27 100644
--- a/bucket.go
+++ b/bucket.go
@@ -175,9 +175,8 @@ func (b *Bucket) CreateBucket(key []byte) (*Bucket, error) {
if bytes.Equal(key, k) {
if (flags & bucketLeafFlag) != 0 {
return nil, ErrBucketExists
- } else {
- return nil, ErrIncompatibleValue
}
+ return nil, ErrIncompatibleValue
}
// Create empty, inline bucket.