From 7e7eb3ac295b3a94904c4acc14630b03cb4b4621 Mon Sep 17 00:00:00 2001 From: xdrm-brackets Date: Mon, 2 Mar 2020 22:20:28 +0100 Subject: [PATCH] fix returning first element of 1-sized slice instead of the slice --- internal/reqdata/parameter.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/reqdata/parameter.go b/internal/reqdata/parameter.go index 2e9aec7..09d48a3 100644 --- a/internal/reqdata/parameter.go +++ b/internal/reqdata/parameter.go @@ -82,7 +82,7 @@ func parseParameter(data interface{}) (interface{}, error) { } // already typed - return data, nil + return element.Interface(), nil }