Makefile: update golangci-lint from v1.29.0 to v1.40.1

This commit is contained in:
Aliaksandr Valialkin
2021-05-20 18:27:10 +03:00
parent 0d3e78b9ee
commit 4c7bb75fa2
3 changed files with 6 additions and 2 deletions

View File

@@ -157,7 +157,10 @@ func Stop(addr string) error {
delete(servers, addr)
serversLock.Unlock()
if s == nil {
logger.Panicf("BUG: there is no http server at %q", addr)
err := fmt.Errorf("BUG: there is no http server at %q", addr)
logger.Panicf("%s", err)
// The return is needed for golangci-lint: SA5011(related information): this check suggests that the pointer can be nil
return err
}
deadline := time.Now().Add(*shutdownDelay).UnixNano()