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:
parent
718834212e
commit
e9ea1fcc30
@ -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 => (
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user