From 86f6136257ead2df0d2b67d480e28f57f7bc33af Mon Sep 17 00:00:00 2001 From: David Baker Date: Wed, 4 Jun 2025 16:23:59 +0100 Subject: [PATCH] Prettier --- src/electron-main.ts | 2 +- src/store.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/electron-main.ts b/src/electron-main.ts index 8d589bfee3..aaa0e7e79b 100644 --- a/src/electron-main.ts +++ b/src/electron-main.ts @@ -487,7 +487,7 @@ app.on("ready", async () => { try { console.debug("Ensuring storage is ready"); - if (!await store.prepareSafeStorage(global.mainWindow.webContents.session)) return; + if (!(await store.prepareSafeStorage(global.mainWindow.webContents.session))) return; } catch (e) { console.error(e); app.exit(1); diff --git a/src/store.ts b/src/store.ts index c20ec3c12b..9517d84e67 100644 --- a/src/store.ts +++ b/src/store.ts @@ -276,9 +276,9 @@ class Store extends ElectronStore { * Prepare the safeStorage backend for use. * We don't eagerly import from keytar as that would bring in data for all Element profiles and not just the current one, * so we import lazily in getSecret. - * + * * This will relaunch the app in some cases, in which case it will return false and the caller should abort startup. - * + * * @param electronSession - The Electron session to use for storage (will be used to clear storage if necessary). * @returns true if safeStorage was initialised successfully or false if the app will be relaunched */