service.Run: simplify return statement
This commit is contained in:
parent
a3741f8a11
commit
e769802939
@ -165,9 +165,5 @@ func (s *service) Run() error {
|
||||
// exit reg loop
|
||||
close(ex)
|
||||
|
||||
if err := s.Stop(); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
return nil
|
||||
return s.Stop()
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user