1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00

Remove unnecessary check

Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
Sebastian Malton 2022-10-24 12:10:10 -04:00
parent 718834212e
commit e9ea1fcc30

View File

@ -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 => (