From 2da03b735517a034a5b369550036c853a7dad819 Mon Sep 17 00:00:00 2001 From: jwijenbergh Date: Wed, 23 Mar 2022 18:19:45 +0100 Subject: Run gofumpt --- src/http.go | 3 --- 1 file changed, 3 deletions(-) (limited to 'src/http.go') diff --git a/src/http.go b/src/http.go index 8cb32b2..bc2cc20 100644 --- a/src/http.go +++ b/src/http.go @@ -66,7 +66,6 @@ type HTTPOptionalParams struct { // Construct an URL including on parameters func HTTPConstructURL(baseURL string, parameters URLParameters) (string, error) { url, err := url.Parse(baseURL) - if err != nil { return "", err } @@ -116,7 +115,6 @@ func httpOptionalHeaders(req *http.Request, opts *HTTPOptionalParams) { req.Header.Add(k, v[0]) } } - } func httpOptionalBodyReader(opts *HTTPOptionalParams) io.Reader { @@ -127,7 +125,6 @@ func httpOptionalBodyReader(opts *HTTPOptionalParams) io.Reader { } func HTTPMethodWithOpts(method string, url string, opts *HTTPOptionalParams) (http.Header, []byte, error) { - // Make sure the url contains all the parameters // This can return an error, // it already has the right error so so we don't wrap it further -- cgit v1.2.3