Conform more of the codebase to strictNullChecks
(#10518
* Conform more of the codebase to `strictNullChecks` * Iterate * Fix tests
This commit is contained in:
parent
e9cc88b872
commit
55d3548330
23 changed files with 107 additions and 99 deletions
|
@ -160,7 +160,7 @@ class MatrixClientPegClass implements IMatrixClientPeg {
|
|||
}
|
||||
|
||||
public currentUserIsJustRegistered(): boolean {
|
||||
return this.matrixClient && this.matrixClient.credentials.userId === this.justRegisteredUserId;
|
||||
return !!this.matrixClient && this.matrixClient.credentials.userId === this.justRegisteredUserId;
|
||||
}
|
||||
|
||||
public userRegisteredWithinLastHours(hours: number): boolean {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue