Fix return statement inside else block at the end of function and gofmt windows file

Signed-off-by: nick <nicholasjamesrusso@gmail.com>
master
nick 2016-10-31 20:49:40 -07:00
parent 4b1ebc1869
commit ac86fb9530
2 changed files with 2 additions and 3 deletions

View File

@ -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.