From 445675e8081ae1e911db2ebd57efd51329574cdf Mon Sep 17 00:00:00 2001 From: Alexander Morozov Date: Mon, 9 Nov 2015 15:14:20 -0800 Subject: [PATCH] Remove unnecessary var block in monitorExec Signed-off-by: Alexander Morozov --- daemon/exec.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/daemon/exec.go b/daemon/exec.go index 299aaf6082..9cc5c1f3b4 100644 --- a/daemon/exec.go +++ b/daemon/exec.go @@ -358,12 +358,8 @@ func (d *Daemon) containerExec(container *Container, ec *ExecConfig) error { } func (d *Daemon) monitorExec(container *Container, ExecConfig *ExecConfig, callback execdriver.DriverCallback) error { - var ( - err error - exitCode int - ) pipes := execdriver.NewPipes(ExecConfig.streamConfig.stdin, ExecConfig.streamConfig.stdout, ExecConfig.streamConfig.stderr, ExecConfig.OpenStdin) - exitCode, err = d.Exec(container, ExecConfig, pipes, callback) + exitCode, err := d.Exec(container, ExecConfig, pipes, callback) if err != nil { logrus.Errorf("Error running command in existing container %s: %s", container.ID, err) }