Skip to content

Commit 35ab050

Browse files
committed
don't add an empty options key only to check for options before writing the good stuff. d'oh!
1 parent 7c40810 commit 35ab050

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

core/lib/plugin_manager.js

+1-3
Original file line numberDiff line numberDiff line change
@@ -46,16 +46,14 @@ var plugin_manager = function (config, configPath) {
4646
if (!diskConfig.plugins[pluginName]) {
4747
diskConfig.plugins[pluginName] = {
4848
enabled: true,
49-
initialized: false,
50-
options: {}
49+
initialized: false
5150
};
5251
}
5352

5453
const pluginPathConfig = path.resolve(pluginPath, 'config.json');
5554
try {
5655
var pluginConfigJSON = require(pluginPathConfig);
5756
if (!diskConfig.plugins[pluginName].options) {
58-
5957
diskConfig.plugins[pluginName].options = pluginConfigJSON;
6058
}
6159
} catch (ex) {

0 commit comments

Comments
 (0)