Remove unnecessary check

Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
Sebastian Malton committed 2022-12-01 09:33:43 -05:00
1 parent 718834212e
commit e9ea1fcc30
1 file changed
-1
@@ -58,7 +58,6 @@ export class CustomResourceDefinitionStore extends KubeObjectStore<CustomResourc
} }
getByObject(obj: KubeObject) { getByObject(obj: KubeObject) {
if (!obj) return undefined;
const { kind, apiVersion } = obj; const { kind, apiVersion } = obj;
return this.items.find(crd => ( return this.items.find(crd => (