Merge pull request #878 from cespare/range-error

Fix small error-handling bug in Go bindings
This commit is contained in:
A.J. Beamon 2018-10-29 18:12:40 -04:00 committed by GitHub
commit b96d462ad3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

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