Golint: remove redundant ifs

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
Sebastiaan van Stijn
2018-01-15 00:42:25 +01:00
parent 63a0e88e8a
commit b4a6313969
27 changed files with 35 additions and 161 deletions

View File

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