1
0
mirror of https://github.com/lensapp/lens.git synced 2024-09-11 09:25:26 +03:00

chore: Remove dead code in API parsing

apiPrefix is always at least "/", making the removed code unreachable.

Co-authored-by: Mikko Aspiala <mikko.aspiala@gmail.com>

Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
This commit is contained in:
Janne Savolainen 2023-05-09 10:00:55 +03:00
parent bb400ae667
commit ce31715cfd

View File

@ -92,10 +92,6 @@ export function parseKubeApi(path: string): IKubeApiParsed | undefined {
const apiVersionWithGroup = [apiGroup, apiVersion].filter(v => v).join("/");
const apiBase = [apiPrefix, apiGroup, apiVersion, resource].filter(v => v).join("/");
if (!apiBase) {
return undefined;
}
return {
apiBase,
apiPrefix, apiGroup,