fix: update comment for related updated func

Signed-off-by: HaoJie Liu <liuhaojie@beyondcent.com>
This commit is contained in:
HaoJie Liu 2022-07-14 10:20:48 +08:00
parent f3654386ab
commit d8702cc369
No known key found for this signature in database
GPG Key ID: 6CDCB10FAC001536

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() {