From d8702cc369a98aceb974c533ce79a71985fd441f Mon Sep 17 00:00:00 2001 From: HaoJie Liu Date: Thu, 14 Jul 2022 10:20:48 +0800 Subject: [PATCH] fix: update comment for related updated func Signed-off-by: HaoJie Liu --- pkg/scheduler/framework/interface.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/scheduler/framework/interface.go b/pkg/scheduler/framework/interface.go index feadee9af8d..9c587aa3aed 100644 --- a/pkg/scheduler/framework/interface.go +++ b/pkg/scheduler/framework/interface.go @@ -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() {