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
|
@ -50,11 +50,11 @@ export const getClientInformationEventType = (deviceId: string): string => `${cl
|
|||
export const recordClientInformation = async (
|
||||
matrixClient: MatrixClient,
|
||||
sdkConfig: IConfigOptions,
|
||||
platform: BasePlatform,
|
||||
platform?: BasePlatform,
|
||||
): Promise<void> => {
|
||||
const deviceId = matrixClient.getDeviceId()!;
|
||||
const { brand } = sdkConfig;
|
||||
const version = await platform.getAppVersion();
|
||||
const version = await platform?.getAppVersion();
|
||||
const type = getClientInformationEventType(deviceId);
|
||||
const url = formatUrl();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue