From 8779f9ca3a57f081f10f2a1662437d87dbea32b6 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 }