From a865ade26a12f2271fa5796b45fd7f13b684d198 Mon Sep 17 00:00:00 2001 From: pancho horrillo Date: Fri, 4 Oct 2019 07:28:08 +0200 Subject: [PATCH] Use string concatenation to compose simple expression MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Héctor Hurtado --- internal/client/set.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/internal/client/set.go b/internal/client/set.go index fba3d5d..28d6380 100644 --- a/internal/client/set.go +++ b/internal/client/set.go @@ -1,7 +1,6 @@ package client import ( - "fmt" "io" "github.com/BBVA/kapow/internal/http" @@ -9,7 +8,5 @@ import ( // TODO: Review spec: Data API > Error responses > 204 Resource Item Not Found should not be 2xx func SetData(kapowURL, handlerId, path string, r io.Reader) error { - - return http.Put(fmt.Sprintf("%s/%s%s", kapowURL, handlerId, path), "", r, nil) - + return http.Put(kapowURL+"/"+handlerId+path, "", r, nil) }