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

Remove commented code.

Signed-off-by: Panu Horsmalahti <phorsmalahti@mirantis.com>
This commit is contained in:
Panu Horsmalahti 2021-10-21 14:33:59 +03:00
parent 62b14ae378
commit 93a7a8382c

View File

@ -133,8 +133,6 @@ export function forCluster<T extends KubeObject>(cluster: ILocalKubeApiConfig, k
}); });
} }
// const getToken = (token: string | (() => Promise<string>)) => isFunction(token) ? token() : token;
export function forRemoteCluster<T extends KubeObject>(config: IRemoteKubeApiConfig, kubeClass: KubeObjectConstructor<T>): KubeApi<T> { export function forRemoteCluster<T extends KubeObject>(config: IRemoteKubeApiConfig, kubeClass: KubeObjectConstructor<T>): KubeApi<T> {
const reqInit: RequestInit = {}; const reqInit: RequestInit = {};
const token = config.user.token; const token = config.user.token;