mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-12-15 08:05:19 -05:00
go: remove unused parameters
Signed-off-by: Paul Meyer <49727155+katexochen@users.noreply.github.com>
This commit is contained in:
parent
822d7823f8
commit
0036b24266
106 changed files with 320 additions and 323 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue