service.Run: simplify return statement

This commit is contained in:
Shulhan 2018-03-13 17:40:13 +07:00
parent a3741f8a11
commit e769802939

View File

@ -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
} }