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
|
// exit reg loop
|
||||||
close(ex)
|
close(ex)
|
||||||
|
|
||||||
if err := s.Stop(); err != nil {
|
return s.Stop()
|
||||||
return err
|
|
||||||
}
|
|
||||||
|
|
||||||
return nil
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user