Skip to content

Commit

Permalink
forgot semicolon in a hurry meshctrl.js Ylianst#6029
Browse files Browse the repository at this point in the history
Signed-off-by: si458 <simonsmith5521@gmail.com>
  • Loading branch information
si458 committed Apr 15, 2024
1 parent 7b8cf85 commit 832e618
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion meshctrl.js
Original file line number Diff line number Diff line change
Expand Up @@ -1117,7 +1117,7 @@ function performConfigOperations(args) {
if (fs.existsSync(configFile) == false) { console.log("Unable to find config.json."); return; }
var config = null;
try { config = fs.readFileSync(configFile).toString('utf8'); } catch (ex) { console.log("Error: Unable to read config.json"); return; }
try { config = JSON.parse(fs.readFileSync(configFile)) } catch (e) { console.log('ERROR: Unable to parse ' + configFile + '.'); return null; }
try { config = JSON.parse(fs.readFileSync(configFile)); } catch (e) { console.log('ERROR: Unable to parse ' + configFile + '.'); return null; }
if (args.adddomain != null) {
didSomething++;
if (config.domains == null) { config.domains = {}; }
Expand Down

0 comments on commit 832e618

Please sign in to comment.