Towards noUncheckedIndexedAccess

This commit is contained in:
Manav Rathi 2024-05-25 17:44:29 +05:30
parent b19b34b3dc
commit 390b4b1f81
No known key found for this signature in database

View file

@ -146,8 +146,8 @@ const parseIssuer = (url: URL, path: string): string => {
let p = decodeURIComponent(path);
if (p.startsWith("/")) p = p.slice(1);
if (p.includes(":")) p = p.split(":")[0];
else if (p.includes("-")) p = p.split("-")[0];
if (p.includes(":")) p = ensure(p.split(":")[0]);
else if (p.includes("-")) p = ensure(p.split("-")[0]);
return p;
};