mirror of
https://github.com/clearlinux/docker.git
synced 2026-09-05 13:11:30 +00:00
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>
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user