From cc1d746643b7aa7e328f6c3c4d9af7c59b909144 Mon Sep 17 00:00:00 2001 From: Kir Kolyshkin Date: Tue, 29 Jun 2021 17:23:58 -0700 Subject: [PATCH] exec.go: nit No need to have an intermediate variable here. Signed-off-by: Kir Kolyshkin --- exec.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/exec.go b/exec.go index 66ee3653c..06b46b408 100644 --- a/exec.go +++ b/exec.go @@ -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,