Merge pull request #13102 from duglin/MissingOK

Add missing "ok" on "comma ok" idiom in test util
This commit is contained in:
Alexander Morozov 2015-05-10 09:22:44 -07:00
commit 13064646a6

View file

@ -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
}
}