Linting fixes
parent
d2679077a4
commit
ac652edcb3
|
@ -219,11 +219,10 @@ exports.getImages = (dir, req, res, callback) => {
|
|||
|
||||
exports.getConfigFilename = () => {
|
||||
let filename = path.join(__dirname, '../config', 'settings-local.json');
|
||||
if (fs.existsSync(filename)) {
|
||||
if(fs.existsSync(filename)){
|
||||
return filename;
|
||||
} else {
|
||||
return path.join(__dirname, '../config', 'settings.json');
|
||||
}
|
||||
return path.join(__dirname, '../config', 'settings.json');
|
||||
};
|
||||
|
||||
exports.getConfig = () => {
|
||||
|
|
Loading…
Reference in New Issue