mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-24 20:24:09 +00:00
Merge pull request #111127 from HecarimV/fix-22071410
fix: update comment for related updated func
This commit is contained in:
commit
0e826ffef4
@ -209,7 +209,7 @@ func (s *Status) IsUnschedulable() bool {
|
|||||||
return code == Unschedulable || code == UnschedulableAndUnresolvable
|
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.
|
// with a concatenated message on reasons of the Status.
|
||||||
func (s *Status) AsError() error {
|
func (s *Status) AsError() error {
|
||||||
if s.IsSuccess() || s.IsWait() || s.IsSkip() {
|
if s.IsSuccess() || s.IsWait() || s.IsSkip() {
|
||||||
|
Loading…
Reference in New Issue
Block a user