w/o this the "ok" we're checking is from the previous type assertion.
Signed-off-by: Doug Davis <dug@us.ibm.com>
| ... | ... |
@@ -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 |
} |