mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-18 08:09:58 +00:00
fix: add code comments
This commit is contained in:
parent
6aad00ff73
commit
1863a808b2
@ -415,6 +415,7 @@ func (e *ErrGroupDiscoveryFailed) Error() string {
|
|||||||
return fmt.Sprintf("unable to retrieve the complete list of server APIs: %s", strings.Join(groups, ", "))
|
return fmt.Sprintf("unable to retrieve the complete list of server APIs: %s", strings.Join(groups, ", "))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Is makes it possible for the callers to use `errors.Is(` helper on errors wrapped with ErrGroupDiscoveryFailed error.
|
||||||
func (e *ErrGroupDiscoveryFailed) Is(target error) bool {
|
func (e *ErrGroupDiscoveryFailed) Is(target error) bool {
|
||||||
_, ok := target.(*ErrGroupDiscoveryFailed)
|
_, ok := target.(*ErrGroupDiscoveryFailed)
|
||||||
return ok
|
return ok
|
||||||
|
Loading…
Reference in New Issue
Block a user