Conform more of the codebase to strictNullChecks
(#10731)
This commit is contained in:
parent
9f8113eabd
commit
1281c0746b
40 changed files with 147 additions and 119 deletions
|
@ -18,7 +18,7 @@ import { Room } from "matrix-js-sdk/src/matrix";
|
|||
|
||||
import { LocalRoom, LOCAL_ROOM_ID_PREFIX } from "../../models/LocalRoom";
|
||||
|
||||
export function isLocalRoom(roomOrID?: Room | string): boolean {
|
||||
export function isLocalRoom(roomOrID?: Room | string | null): boolean {
|
||||
if (typeof roomOrID === "string") {
|
||||
return roomOrID.startsWith(LOCAL_ROOM_ID_PREFIX);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue