go: remove unused parameters

Signed-off-by: Paul Meyer <49727155+katexochen@users.noreply.github.com>
This commit is contained in:
Paul Meyer 2023-03-20 11:03:36 +01:00
parent 822d7823f8
commit 0036b24266
106 changed files with 320 additions and 323 deletions

View file

@ -383,7 +383,7 @@ func newStubHTTPClientJSONFunc(response metadataResponse, err error) httpClientJ
}
}
func (c *stubHTTPClientJSON) Do(req *http.Request) (*http.Response, error) {
func (c *stubHTTPClientJSON) Do(_ *http.Request) (*http.Response, error) {
c.called = true
body, err := json.Marshal(c.response)
c.require.NoError(err)
@ -396,7 +396,7 @@ type stubHTTPClient struct {
called bool
}
func (c *stubHTTPClient) Do(req *http.Request) (*http.Response, error) {
func (c *stubHTTPClient) Do(_ *http.Request) (*http.Response, error) {
c.called = true
return &http.Response{Body: io.NopCloser(strings.NewReader(c.response))}, c.err
}