Update Settings.js
added brackets to match etherpad lite devs' coding stylepull/2184/head
parent
e17044d60e
commit
63b89b693d
|
@ -178,11 +178,12 @@ exports.reloadSettings = function reloadSettings() {
|
||||||
// Discover where the settings file lives
|
// Discover where the settings file lives
|
||||||
var settingsFilename = argv.settings || "settings.json";
|
var settingsFilename = argv.settings || "settings.json";
|
||||||
|
|
||||||
if (path.resolve(settingsFilename)===settingsFilename)
|
if (path.resolve(settingsFilename)===settingsFilename) {
|
||||||
settingsFilename = path.resolve(settingsFilename);
|
settingsFilename = path.resolve(settingsFilename);
|
||||||
else
|
} else {
|
||||||
settingsFilename = path.resolve(path.join(exports.root, settingsFilename));
|
settingsFilename = path.resolve(path.join(exports.root, settingsFilename));
|
||||||
|
}
|
||||||
|
|
||||||
var settingsStr;
|
var settingsStr;
|
||||||
try{
|
try{
|
||||||
//read the settings sync
|
//read the settings sync
|
||||||
|
|
Loading…
Reference in New Issue