clean Unreachable code

Signed-off-by: Abirdcfly <fp544037857@gmail.com>

Kubernetes-commit: f71718d6448418d0289b9649905a16bfb1962b68
This commit is contained in:
Abirdcfly 2022-07-19 00:58:17 +08:00 committed by Kubernetes Publisher
parent fe12e65afd
commit 65b1e7d3c0

View File

@ -491,8 +491,7 @@ func (c *dynamicResourceClient) Apply(ctx context.Context, name string, obj *uns
if err := c.client.scheme.Convert(uncastRet, ret, nil); err != nil { if err := c.client.scheme.Convert(uncastRet, ret, nil); err != nil {
return nil, err return nil, err
} }
return ret, err return ret, nil
return nil, nil
} }
func (c *dynamicResourceClient) ApplyStatus(ctx context.Context, name string, obj *unstructured.Unstructured, options metav1.ApplyOptions) (*unstructured.Unstructured, error) { func (c *dynamicResourceClient) ApplyStatus(ctx context.Context, name string, obj *unstructured.Unstructured, options metav1.ApplyOptions) (*unstructured.Unstructured, error) {