update golangci-lint to v1.59.1

Includes fixes for new lint warnings from unparam and usestdlibvars.

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
This commit is contained in:
Paul Holzinger
2024-06-10 14:46:45 +02:00
parent 7ff1494c47
commit fa4f11facc
6 changed files with 13 additions and 8 deletions

View File

@ -269,7 +269,7 @@ func WaitAndPingAPI(sock string) {
if err == nil {
defer resp.Body.Close()
}
if err != nil || resp.StatusCode != 200 {
if err != nil || resp.StatusCode != http.StatusOK {
logrus.Warn("API socket failed ping test")
}
}