mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
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) {
|
func getExitCode(err error) (int, error) {
|
||||||
exitCode := 0
|
exitCode := 0
|
||||||
if exiterr, ok := err.(*exec.ExitError); ok {
|
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
|
return procExit.ExitStatus(), nil
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue