exec.go: nit

No need to have an intermediate variable here.

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
This commit is contained in:
Kir Kolyshkin
2021-06-29 17:23:58 -07:00
parent e999e29a28
commit cc1d746643
+1 -2
View File
@@ -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,