From 72319d2a2285e6d3d57f9f52e7b0c62b25c7d334 Mon Sep 17 00:00:00 2001 From: Asdine El Hrychy Date: Thu, 12 Nov 2020 11:13:11 +0400 Subject: [PATCH] Add missing return --- document/encoding/custom/codec.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/document/encoding/custom/codec.go b/document/encoding/custom/codec.go index 374dc6b27..ea7df6513 100644 --- a/document/encoding/custom/codec.go +++ b/document/encoding/custom/codec.go @@ -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 }