From 60b0ea693370771d212af8d211d62e5a26ae6169 Mon Sep 17 00:00:00 2001 From: Dorian Niemiec Date: Mon, 26 Aug 2024 07:38:42 +0200 Subject: [PATCH] Lint out svrpasswd.js script --- utils/svrpasswd.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/utils/svrpasswd.js b/utils/svrpasswd.js index 2f9ba4e..2525cb1 100644 --- a/utils/svrpasswd.js +++ b/utils/svrpasswd.js @@ -275,7 +275,9 @@ if (configJSON.users != undefined) users = configJSON.users; function saveConfig() { let configJSONobj = {}; if (fs.existsSync(__dirname + "/config.json")) - configJSONobj = JSON.parse(fs.readFileSync(__dirname + "/config.json").toString()); + configJSONobj = JSON.parse( + fs.readFileSync(__dirname + "/config.json").toString(), + ); configJSONobj.users = users; const configString = JSON.stringify(configJSONobj, null, 2); fs.writeFileSync(__dirname + "/config.json", configString);