From dd4693f67cb0ce5dc14c87ddf2a9a9f6a3406763 Mon Sep 17 00:00:00 2001 From: Doug Davis Date: Sat, 9 May 2015 05:56:10 -0700 Subject: [PATCH] Add missing "ok" on "common ok" idiom in test util w/o this the "ok" we're checking is from the previous type assertion. Signed-off-by: Doug Davis --- integration-cli/utils.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/integration-cli/utils.go b/integration-cli/utils.go index 5fb0b63458..2da0e3c4bd 100644 --- a/integration-cli/utils.go +++ b/integration-cli/utils.go @@ -23,7 +23,7 @@ import ( func getExitCode(err error) (int, error) { exitCode := 0 if exiterr, ok := err.(*exec.ExitError); ok { - if procExit := exiterr.Sys().(syscall.WaitStatus); ok { + if procExit, ok := exiterr.Sys().(syscall.WaitStatus); ok { return procExit.ExitStatus(), nil } }