Skip to content

Commit

Permalink
Add missing return
Browse files Browse the repository at this point in the history
  • Loading branch information
asdine committed Nov 12, 2020
1 parent b7e6b80 commit 72319d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion document/encoding/custom/codec.go
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ func EncodeValue(v document.Value) ([]byte, error) {
case document.IntegerValue:
return encodeInt64(v.V.(int64)), nil
case document.DoubleValue:
binarysort.AppendFloat64(nil, v.V.(float64))
return binarysort.AppendFloat64(nil, v.V.(float64)), nil
case document.NullValue:
return nil, nil
}
Expand Down

0 comments on commit 72319d2

Please sign in to comment.