From bb05fb8067b42e057c954159304e07e7659b8fca Mon Sep 17 00:00:00 2001 From: Stephan Renatus Date: Tue, 13 Mar 2018 12:37:27 +0100 Subject: [PATCH] util.RoundTrip(): use neighbouring UnmarshalJSON function The test failures this had introduced before, from index_tests.go's TestIndicesBuild, suggested that this is probably what we want. Signed-off-by: Stephan Renatus --- util/json.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/json.go b/util/json.go index 80048fad1e..0efd2a4d3a 100644 --- a/util/json.go +++ b/util/json.go @@ -65,5 +65,5 @@ func RoundTrip(x *interface{}) error { if err != nil { return err } - return json.Unmarshal(bs, x) + return UnmarshalJSON(bs, x) }