From 71840ddbd4bc4b066043a77c683e8fc939071f53 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Wed, 29 May 2024 21:29:37 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- src/electron/frontend/core/globals.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/electron/frontend/core/globals.js b/src/electron/frontend/core/globals.js index 51af1f821..b9eb7eab4 100644 --- a/src/electron/frontend/core/globals.js +++ b/src/electron/frontend/core/globals.js @@ -35,7 +35,9 @@ export const testDataFolderPath = joinPath(appDirectory, ...paths.subfolders.tes // Encryption const IV_LENGTH = 16; const KEY_LENGTH = 32; -export const ENCRYPTION_KEY = isElectron ? Buffer.concat([Buffer.from(appDirectory), Buffer.alloc(KEY_LENGTH)], KEY_LENGTH) : "" +export const ENCRYPTION_KEY = isElectron + ? Buffer.concat([Buffer.from(appDirectory), Buffer.alloc(KEY_LENGTH)], KEY_LENGTH) + : ""; export const ENCRYPTION_IV = isElectron ? crypto.randomBytes(IV_LENGTH) : "";