mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-04 18:00:08 +00:00
Merge pull request #127570 from soltysh/do_not_return_err
Do not return error where it's not needed
This commit is contained in:
commit
5973accf48
@ -381,7 +381,7 @@ func waitForCRDReady(crd *apiextensionsv1.CustomResourceDefinition, apiExtension
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
return v1CRD, err
|
return v1CRD, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// CreateNewV1CustomResourceDefinitionWatchUnsafe creates the CRD and makes sure
|
// CreateNewV1CustomResourceDefinitionWatchUnsafe creates the CRD and makes sure
|
||||||
@ -404,7 +404,7 @@ func CreateNewV1CustomResourceDefinitionWatchUnsafe(v1CRD *apiextensionsv1.Custo
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return v1CRD, err
|
return v1CRD, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// CreateNewV1CustomResourceDefinition creates the given CRD and makes sure its watch cache is primed on the server.
|
// CreateNewV1CustomResourceDefinition creates the given CRD and makes sure its watch cache is primed on the server.
|
||||||
|
Loading…
Reference in New Issue
Block a user