mirror of
https://github.com/containers/podman.git
synced 2025-07-02 08:47:43 +08:00
code cleanup
clean up code identified as problematic by golands inspection Signed-off-by: baude <bbaude@redhat.com>
This commit is contained in:
@ -37,7 +37,9 @@ func stopPauseProcess() error {
|
||||
if err := os.Remove(pausePidPath); err != nil {
|
||||
return errors.Wrapf(err, "cannot delete pause pid file %s", pausePidPath)
|
||||
}
|
||||
syscall.Kill(pausePid, syscall.SIGKILL)
|
||||
if err := syscall.Kill(pausePid, syscall.SIGKILL); err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
Reference in New Issue
Block a user