mirror of
https://github.com/finos/SymphonyElectron.git
synced 2024-12-28 09:51:06 -06:00
Prevent from overriding global config if it's already done and parsed content is empty.
This commit is contained in:
parent
abdea98dd4
commit
4344fee1ec
@ -721,9 +721,12 @@ class Config {
|
||||
}
|
||||
return;
|
||||
}
|
||||
this.globalConfig = this.parseConfigData(
|
||||
const parsedConfigData = this.parseConfigData(
|
||||
fs.readFileSync(this.globalConfigPath, 'utf8'),
|
||||
);
|
||||
if (parsedConfigData && Object.keys(parsedConfigData).length > 0) {
|
||||
this.globalConfig = parsedConfigData;
|
||||
}
|
||||
logger.info(`config-handler: Global configuration: `, this.globalConfig);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user