Skip to content

Commit 7dbbd4e

Browse files
authored
Merge pull request moby#35220 from heddle317/remove-unused-code-todo
Removing unused code with a TODO that no longer needs to be done
2 parents fa2df86 + 736fafb commit 7dbbd4e

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

pkg/system/exitcode.go

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -17,17 +17,3 @@ func GetExitCode(err error) (int, error) {
1717
}
1818
return exitCode, fmt.Errorf("failed to get exit code")
1919
}
20-
21-
// ProcessExitCode process the specified error and returns the exit status code
22-
// if the error was of type exec.ExitError, returns nothing otherwise.
23-
func ProcessExitCode(err error) (exitCode int) {
24-
if err != nil {
25-
var exiterr error
26-
if exitCode, exiterr = GetExitCode(err); exiterr != nil {
27-
// TODO: Fix this so we check the error's text.
28-
// we've failed to retrieve exit code, so we set it to 127
29-
exitCode = 127
30-
}
31-
}
32-
return
33-
}

0 commit comments

Comments
 (0)