mirror of
https://github.com/opencontainers/runc.git
synced 2026-07-10 21:53:57 +08:00
exec.go: nit
No need to have an intermediate variable here. Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
This commit is contained in:
@@ -121,7 +121,6 @@ func execProcess(context *cli.Context) (int, error) {
|
||||
if path == "" && len(context.Args()) == 1 {
|
||||
return -1, errors.New("process args cannot be empty")
|
||||
}
|
||||
detach := context.Bool("detach")
|
||||
state, err := container.State()
|
||||
if err != nil {
|
||||
return -1, err
|
||||
@@ -137,7 +136,7 @@ func execProcess(context *cli.Context) (int, error) {
|
||||
shouldDestroy: false,
|
||||
container: container,
|
||||
consoleSocket: context.String("console-socket"),
|
||||
detach: detach,
|
||||
detach: context.Bool("detach"),
|
||||
pidFile: context.String("pid-file"),
|
||||
action: CT_ACT_RUN,
|
||||
init: false,
|
||||
|
||||
Reference in New Issue
Block a user