From c269984bb72954a3e5a5b76c3aac895515ea3330 Mon Sep 17 00:00:00 2001 From: "H. Shay" Date: Mon, 30 Sep 2024 13:14:50 -0700 Subject: [PATCH] lint --- src/index.ts | 3 +-- test/integration/clientHelper.ts | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/index.ts b/src/index.ts index dbf51ad..c27fde6 100644 --- a/src/index.ts +++ b/src/index.ts @@ -73,8 +73,7 @@ import { initializeSentry, initializeGlobalPerformanceMetrics, patchMatrixClient const accessToken = await Promise.resolve(storage.readValue("access_token")); if (accessToken) { client = new MatrixClient(config.homeserverUrl, accessToken, storage, cryptoStorage); - } - else { + } else { const auth = new MatrixAuth(config.homeserverUrl) const tempClient = await auth.passwordLogin(config.encryption.username, config.encryption.password) client = new MatrixClient(config.homeserverUrl, tempClient.accessToken, storage, cryptoStorage); diff --git a/test/integration/clientHelper.ts b/test/integration/clientHelper.ts index 423ad90..3dcbb62 100644 --- a/test/integration/clientHelper.ts +++ b/test/integration/clientHelper.ts @@ -130,7 +130,7 @@ async function registerNewTestUser(homeserver: string, options: RegistrationOpti * * @returns A new `MatrixClient` session for a unique test user. */ -export async function newTestUser(homeserver: string, options: RegistrationOptions, encrypted: boolean = false): Promise { +export async function newTestUser(homeserver: string, options: RegistrationOptions, encrypted = false): Promise { const accessToken = await registerNewTestUser(homeserver, options); let client; if (encrypted) {