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 9aa22cccf0
commit 69e365cd48
3 changed files with 6 additions and 2 deletions

View File

@@ -153,7 +153,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()