Towards noUncheckedIndexedAccess
This commit is contained in:
parent
b19b34b3dc
commit
390b4b1f81
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue