aboutsummaryrefslogtreecommitdiff
path: root/bucket.go
diff options
context:
space:
mode:
authorBen Johnson <benbjohnson@yahoo.com>2016-12-27 14:08:26 -0700
committerGitHub <noreply@github.com>2016-12-27 14:08:26 -0700
commit2c3edd782c07f917541f3094a42149bd7e497dc2 (patch)
tree1dcce56aef3c19abcb170373470a85277dd091b6 /bucket.go
parentMerge pull request #625 from vrecan/FcntlFlock (diff)
parentFix return statement inside else block at the end of function and gofmt windo... (diff)
downloaddedo-2c3edd782c07f917541f3094a42149bd7e497dc2.tar.gz
dedo-2c3edd782c07f917541f3094a42149bd7e497dc2.tar.xz
Merge pull request #616 from sinwav/idiomatic
Fix return statement inside else block at the end of function
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.