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

Commit

Permalink
Suppress TS warning about returning null MatrixClient
Browse files Browse the repository at this point in the history
  • Loading branch information
andybalaam committed Apr 18, 2023
1 parent 4ab6c65 commit 0c657e6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test/settings/handlers/DeviceSettingsHandler-test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ describe("DeviceSettingsHandler", () => {
});

afterEach(() => {
// @ts-ignore Allow returning a null MatrixClient

This comment has been minimized.

Copy link
@t3chguy

t3chguy Apr 18, 2023

Member

This should not be ts-ignored, the type is wrong, the tsc strict work will fix it but is unlikely to spot this to remove it again. The non-required check should merely be ignored.

This comment has been minimized.

Copy link
@andybalaam

andybalaam Apr 18, 2023

Author Member

Thanks, fixed.

MatrixClientPeg.get = () => null;
});

Expand Down

0 comments on commit 0c657e6

Please sign in to comment.