mirror of
https://github.com/netbirdio/netbird.git
synced 2026-10-19 20:09:07 +02:00
[client] Fix errcheck findings from the latest golangci-lint (#8251)
This commit is contained in:
@@ -335,7 +335,11 @@ func (s *BaseServer) Stop() error {
|
||||
}
|
||||
|
||||
select {
|
||||
case <-s.Errors():
|
||||
case err := <-s.Errors():
|
||||
if err != nil {
|
||||
log.WithContext(ctx).Infof("stopped Management Service: %v", err)
|
||||
return nil
|
||||
}
|
||||
log.WithContext(ctx).Infof("stopped Management Service")
|
||||
return nil
|
||||
case <-ctx.Done():
|
||||
|
||||
Reference in New Issue
Block a user