From 7e82aced0160540c227a9947430c2ef5a11c78a6 Mon Sep 17 00:00:00 2001 From: prlanzarin <4529051+prlanzarin@users.noreply.github.com> Date: Wed, 16 Nov 2022 13:44:50 +0000 Subject: [PATCH] refactor(config): fix identation in config/index.js --- config/index.js | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/config/index.js b/config/index.js index e3a0fcc..9ff389b 100644 --- a/config/index.js +++ b/config/index.js @@ -5,22 +5,21 @@ const DEFAULT_SETTINGS_FILE_PATH = './settings.json'; const LOCAL_SETTINGS_FILE_PATH = '/etc/bigbluebutton/bbb-pads.json'; const localSettingsExists = () => { - try { - fs.accessSync(LOCAL_SETTINGS_FILE_PATH); - } catch (err) { - return false; - } - return true; + try { + fs.accessSync(LOCAL_SETTINGS_FILE_PATH); + } catch (err) { + return false; + } + return true; }; const SETTINGS = require(DEFAULT_SETTINGS_FILE_PATH); if (localSettingsExists()) { - const LOCAL_SETTINGS = require(LOCAL_SETTINGS_FILE_PATH); - _.mergeWith(SETTINGS, LOCAL_SETTINGS, (a, b) => (_.isArray(b) ? b : undefined)); + const LOCAL_SETTINGS = require(LOCAL_SETTINGS_FILE_PATH); + _.mergeWith(SETTINGS, LOCAL_SETTINGS, (a, b) => (_.isArray(b) ? b : undefined)); } const config = SETTINGS; module.exports = config; -