mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
return directly without ifs in remaining packages
Signed-off-by: Cristian Staretu <cristian.staretu@gmail.com>
This commit is contained in:
parent
8415aeb39a
commit
2c187a24e0
11 changed files with 16 additions and 52 deletions
|
@ -219,12 +219,7 @@ func registerService() error {
|
|||
return err
|
||||
}
|
||||
|
||||
err = eventlog.Install(*flServiceName, p, false, eventlog.Info|eventlog.Warning|eventlog.Error)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
return nil
|
||||
return eventlog.Install(*flServiceName, p, false, eventlog.Info|eventlog.Warning|eventlog.Error)
|
||||
}
|
||||
|
||||
func unregisterService() error {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue