Merge pull request #8342 from davidhsingyuchen/exit-status-typo

This commit is contained in:
Samuel Karp 2023-04-03 11:04:12 -07:00 committed by GitHub
commit cbb2d08af0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -82,13 +82,13 @@ func (s ExitStatus) Result() (uint32, time.Time, error) {
}
// ExitCode returns the exit code of the process.
// This is only valid is Error() returns nil
// This is only valid if Error() returns nil.
func (s ExitStatus) ExitCode() uint32 {
return s.code
}
// ExitTime returns the exit time of the process
// This is only valid is Error() returns nil
// This is only valid if Error() returns nil.
func (s ExitStatus) ExitTime() time.Time {
return s.exitedAt
}