Merge pull request #13102 from duglin/MissingOK
Add missing "ok" on "comma ok" idiom in test util
This commit is contained in:
commit
13064646a6
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue