From fed44641cc6f1d6db5c7a07dcfc00a5153bcea19 Mon Sep 17 00:00:00 2001 From: Tobie Morgan Hitchcock Date: Wed, 4 Jul 2018 11:40:57 +0100 Subject: [PATCH] Output interface{} not []float64 --- util/fncs/math.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/fncs/math.go b/util/fncs/math.go index f66d38cd..a2d9d25c 100644 --- a/util/fncs/math.go +++ b/util/fncs/math.go @@ -110,7 +110,7 @@ func mathMin(ctx context.Context, args ...interface{}) (out interface{}, err err return outputFloat(math.Min(vals)) } -func mathMode(ctx context.Context, args ...interface{}) (out []float64, err error) { +func mathMode(ctx context.Context, args ...interface{}) (out interface{}, err error) { vals := ensureFloats(args[0]) return math.Mode(vals), nil }