Merge pull request #111127 from HecarimV/fix-22071410

fix: update comment for related updated func
This commit is contained in:
Kubernetes Prow Robot 2022-07-14 13:19:08 -07:00 committed by GitHub
commit 0e826ffef4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -209,7 +209,7 @@ func (s *Status) IsUnschedulable() bool {
return code == Unschedulable || code == UnschedulableAndUnresolvable
}
// AsError returns nil if the status is a success or a wait; otherwise returns an "error" object
// AsError returns nil if the status is a success, a wait or a skip; otherwise returns an "error" object
// with a concatenated message on reasons of the Status.
func (s *Status) AsError() error {
if s.IsSuccess() || s.IsWait() || s.IsSkip() {