From ac86fb9530495de6b1664bb5783c98ab905b8cfb Mon Sep 17 00:00:00 2001 From: nick Date: Mon, 31 Oct 2016 20:49:40 -0700 Subject: Fix return statement inside else block at the end of function and gofmt windows file Signed-off-by: nick --- bucket.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'bucket.go') 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. -- cgit v1.2.3