mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2026-05-17 08:36:55 +03:00
Makefile: update golangci-lint from v1.29.0 to v1.40.1
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user