mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
cleanup
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
This commit is contained in:
parent
a9614f73cc
commit
0cc741033b
@ -135,7 +135,7 @@ export class DistributionDetector extends BaseClusterDetector {
|
|||||||
try {
|
try {
|
||||||
const response = await this.k8sRequest("");
|
const response = await this.k8sRequest("");
|
||||||
|
|
||||||
return response.paths?.find((api: string) => api === "/apis/project.openshift.io") !== undefined;
|
return response.paths?.includes("/apis/project.openshift.io");
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user