Do not return error where it's not needed

This commit is contained in:
Maciej Szulik
2024-09-23 18:12:31 +02:00
parent 15d08bf7c8
commit 3bff2b7ee9

View File

@@ -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.