[client] Fix errcheck findings from the latest golangci-lint (#8251)

This commit is contained in:
Viktor Liu
2026-10-19 22:16:59 +09:00
committed by GitHub
parent f8f335720d
commit b1f4efb160
3 changed files with 25 additions and 11 deletions
+5 -1
View File
@@ -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():