diff options
| author | jwijenbergh <jeroenwijenbergh@protonmail.com> | 2022-03-23 18:19:45 +0100 |
|---|---|---|
| committer | jwijenbergh <jeroenwijenbergh@protonmail.com> | 2022-03-23 18:19:45 +0100 |
| commit | 2da03b735517a034a5b369550036c853a7dad819 (patch) | |
| tree | 2c039dd46b43395d60a2fa8159886596f4ef6286 /src/http.go | |
| parent | 40053552852cf8c27fe7658b64df001d65b0a65e (diff) | |
Run gofumpt
Diffstat (limited to 'src/http.go')
| -rw-r--r-- | src/http.go | 3 |
1 files changed, 0 insertions, 3 deletions
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 |
