Apply strictNullChecks
around the codebase (#10302
* Apply `strictNullChecks` around the codebase * Iterate PR
This commit is contained in:
parent
7c2bb966d0
commit
4b8bada24b
26 changed files with 112 additions and 77 deletions
|
@ -45,6 +45,7 @@ export default class ServerSupportUnstableFeatureController extends MatrixClient
|
|||
if (!v === this.enabled) return;
|
||||
this.enabled = !v;
|
||||
const level = SettingsStore.firstSupportedLevel(this.settingName);
|
||||
if (!level) return;
|
||||
const settingValue = SettingsStore.getValue(this.settingName, null);
|
||||
this.watchers.notifyUpdate(this.settingName, null, level, settingValue);
|
||||
}
|
||||
|
@ -61,7 +62,7 @@ export default class ServerSupportUnstableFeatureController extends MatrixClient
|
|||
|
||||
public getValueOverride(
|
||||
level: SettingLevel,
|
||||
roomId: string,
|
||||
roomId: string | null,
|
||||
calculatedValue: any,
|
||||
calculatedAtLevel: SettingLevel | null,
|
||||
): any {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue