diff --git a/client/driver/executor/executor_unix.go b/client/driver/executor/executor_unix.go index 5fde73e22f2..0d02f2c5e1d 100644 --- a/client/driver/executor/executor_unix.go +++ b/client/driver/executor/executor_unix.go @@ -27,9 +27,8 @@ func (e *UniversalExecutor) cleanupChildProcesses(proc *os.Process) error { return err } return nil - } else { - return proc.Kill() } + return proc.Kill() } func (e *UniversalExecutor) shutdownProcess(proc *os.Process) error {