Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Commit

Permalink
This assertion is unnecessary since the receiver accepts the original…
Browse files Browse the repository at this point in the history
… type of the expression
  • Loading branch information
EdGeraghty authored May 17, 2024
1 parent 3e10394 commit 9c383c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/SlidingSyncManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ export class SlidingSyncManager {
let proxyUrl: string | undefined;

try {
const clientWellKnown = await AutoDiscovery.findClientConfig(client.getDomain()!);
const clientWellKnown = await AutoDiscovery.findClientConfig(client.getDomain());

Check failure on line 362 in src/SlidingSyncManager.ts

View workflow job for this annotation

GitHub Actions / Typescript Syntax Check

Argument of type 'string | null' is not assignable to parameter of type 'string'.
proxyUrl = clientWellKnown?.["org.matrix.msc3575.proxy"]?.url;
} catch (e) {
// client.getDomain() is invalid, `AutoDiscovery.findClientConfig` has thrown
Expand Down

0 comments on commit 9c383c4

Please sign in to comment.