Merge pull request #878 from cespare/range-error
Fix small error-handling bug in Go bindings
This commit is contained in:
commit
b96d462ad3
|
@ -313,7 +313,7 @@ func PrefixRange(prefix []byte) (KeyRange, error) {
|
|||
copy(begin, prefix)
|
||||
end, e := Strinc(begin)
|
||||
if e != nil {
|
||||
return KeyRange{}, nil
|
||||
return KeyRange{}, e
|
||||
}
|
||||
return KeyRange{Key(begin), Key(end)}, nil
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue