Browse code

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 <dug@us.ibm.com>

Doug Davis authored on 2015/05/09 21:56:10
Showing 1 changed files
... ...
@@ -23,7 +23,7 @@ import (
23 23
 func getExitCode(err error) (int, error) {
24 24
 	exitCode := 0
25 25
 	if exiterr, ok := err.(*exec.ExitError); ok {
26
-		if procExit := exiterr.Sys().(syscall.WaitStatus); ok {
26
+		if procExit, ok := exiterr.Sys().(syscall.WaitStatus); ok {
27 27
 			return procExit.ExitStatus(), nil
28 28
 		}
29 29
 	}