Correct Object.assign

This commit is contained in:
Jiiks 2018-01-17 09:41:31 +02:00
parent 006b7bed7a
commit 7c12617448
1 changed files with 1 additions and 1 deletions

View File

@ -81,7 +81,7 @@ class PluginManager extends Module {
let userConfig = readConfig.defaultConfig;
try {
const readUserConfig = await FileUtils.readJsonFromFile(userConfigPath);
userConfig = Object.assign(userConfig, readUserConfig);
userConfig = Object.assign({}, userConfig, readUserConfig);
} catch (err) {/*We don't care if this fails it either means that user config doesn't exist or there's something wrong with it so we revert to default config*/}
const configs = {