Conform more of the codebase with strictNullChecks
(#10703)
This commit is contained in:
parent
db40479910
commit
619a9e8542
24 changed files with 108 additions and 77 deletions
|
@ -153,7 +153,7 @@ export class IntegrationManagers {
|
|||
|
||||
if (kind === Kind.Account) {
|
||||
// Order by state_keys (IDs)
|
||||
managers.sort((a, b) => compare(a.id, b.id));
|
||||
managers.sort((a, b) => compare(a.id ?? "", b.id ?? ""));
|
||||
}
|
||||
|
||||
ordered.push(...managers);
|
||||
|
@ -199,7 +199,7 @@ export class IntegrationManagers {
|
|||
logger.log("Looking up integration manager via .well-known");
|
||||
if (domainName.startsWith("http:") || domainName.startsWith("https:")) {
|
||||
// trim off the scheme and just use the domain
|
||||
domainName = url.parse(domainName).host;
|
||||
domainName = url.parse(domainName).host!;
|
||||
}
|
||||
|
||||
let wkConfig: IClientWellKnown;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue