chore(lint): upgrade linter to v1.56.2

This commit is contained in:
Quentin McGaw
2024-03-21 09:48:02 +00:00
parent fb00fb16c2
commit c0621bf381
20 changed files with 74 additions and 35 deletions

View File

@@ -45,7 +45,7 @@ func Test_Updater_GetServers(t *testing.T) {
err error
}{
"http response error": {
warnerBuilder: func(ctrl *gomock.Controller) common.Warner { return nil },
warnerBuilder: func(_ *gomock.Controller) common.Warner { return nil },
responseStatus: http.StatusNoContent,
err: errors.New("fetching API: HTTP status code not OK: 204 No Content"),
},
@@ -77,7 +77,7 @@ func Test_Updater_GetServers(t *testing.T) {
},
"not enough servers": {
minServers: 2,
warnerBuilder: func(ctrl *gomock.Controller) common.Warner { return nil },
warnerBuilder: func(_ *gomock.Controller) common.Warner { return nil },
responseBody: `{"servers":[
{"hostnames":{"openvpn":"hosta"}}
]}`,