mirror of
https://github.com/moby/moby.git
synced 2026-01-11 18:51:37 +00:00
Golint: remove redundant ifs
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
@@ -14,12 +14,7 @@ func (daemon *Daemon) ContainerPause(name string) error {
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
if err := daemon.containerPause(container); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
return nil
|
||||
return daemon.containerPause(container)
|
||||
}
|
||||
|
||||
// containerPause pauses the container execution without stopping the process.
|
||||
|
||||
Reference in New Issue
Block a user