From 70d62959ca03b164f3a9d642348290f8d7714856 Mon Sep 17 00:00:00 2001 From: MasterAcnolo <68693319+MasterAcnolo@users.noreply.github.com> Date: Thu, 19 Feb 2026 22:08:56 +0100 Subject: [PATCH] Fix: Reduce Line Complexity featuresPath --- config.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/config.js b/config.js index 928349d..4a40e97 100644 --- a/config.js +++ b/config.js @@ -5,7 +5,8 @@ const path = require("path"); const localMode = !app.isPackaged; -const featuresPath = localMode ? path.join(__dirname, "./config/config.json") : path.join(path.join(process.resourcesPath,"config/" ,"config.json")); +// Change path for JSON file +const featuresPath = path.join(path.join(`${localMode ? __dirname : process.resourcesPath}`,"config/" , "config.json")); let features = {};