chore: fix unused parameter lint in new golangcilint version

This commit is contained in:
Malte Poll 2024-02-21 13:30:31 +01:00
parent 68fc2b0811
commit 65903459a0
35 changed files with 92 additions and 92 deletions

View file

@ -104,7 +104,7 @@ func TestGetAttestationCert(t *testing.T) {
wantValidateErr bool
}{
"success": {
crlServer: func(req *http.Request) *http.Response {
crlServer: func(_ *http.Request) *http.Response {
return &http.Response{
StatusCode: http.StatusOK,
Body: io.NopCloser(bytes.NewReader(intermediateCert.Raw)),
@ -136,14 +136,14 @@ func TestGetAttestationCert(t *testing.T) {
},
},
"intermediate cert cannot be fetched": {
crlServer: func(req *http.Request) *http.Response {
crlServer: func(_ *http.Request) *http.Response {
return &http.Response{StatusCode: http.StatusNotFound}
},
getAkCert: defaultAkCertFunc,
wantIssueErr: true,
},
"intermediate cert is not signed by root cert": {
crlServer: func(req *http.Request) *http.Response {
crlServer: func(_ *http.Request) *http.Response {
return &http.Response{
StatusCode: http.StatusOK,
Body: io.NopCloser(bytes.NewReader(rootCert.Raw)),
@ -153,7 +153,7 @@ func TestGetAttestationCert(t *testing.T) {
wantValidateErr: true,
},
"ak does not match ak cert public key": {
crlServer: func(req *http.Request) *http.Response {
crlServer: func(_ *http.Request) *http.Response {
return &http.Response{
StatusCode: http.StatusOK,
Body: io.NopCloser(bytes.NewReader(intermediateCert.Raw)),