Update Settings.js

added brackets to match etherpad lite devs' coding style
pull/2184/head
Joachim Schiele 2014-07-24 12:06:52 +02:00
parent e17044d60e
commit 63b89b693d
1 changed files with 4 additions and 3 deletions

View File

@ -178,11 +178,12 @@ exports.reloadSettings = function reloadSettings() {
// Discover where the settings file lives
var settingsFilename = argv.settings || "settings.json";
if (path.resolve(settingsFilename)===settingsFilename)
if (path.resolve(settingsFilename)===settingsFilename) {
settingsFilename = path.resolve(settingsFilename);
else
} else {
settingsFilename = path.resolve(path.join(exports.root, settingsFilename));
}
var settingsStr;
try{
//read the settings sync