diff --git a/lib/core/plugin.js b/lib/core/plugin.js index f5ad6624..fa8c8650 100644 --- a/lib/core/plugin.js +++ b/lib/core/plugin.js @@ -1,7 +1,7 @@ const fs = require('./fs.js'); const utils = require('../utils/utils.js'); const constants = require('../constants'); -const _ = require('underscore') +const _ = require('underscore'); // TODO: pass other params like blockchainConfig, contract files, etc.. var Plugin = function(options) { @@ -222,7 +222,7 @@ Plugin.prototype.registerActionForEvent = function(eventName, cb) { this.eventActions[eventName].push(cb); this.pluginTypes.push('eventActions'); this.pluginTypes = _.uniq(this.pluginTypes); -} +}; Plugin.prototype.runFilePipeline = function() { var self = this; diff --git a/lib/core/plugins.js b/lib/core/plugins.js index cad5f71e..782113d0 100644 --- a/lib/core/plugins.js +++ b/lib/core/plugins.js @@ -119,7 +119,7 @@ Plugins.prototype.getPluginsProperty = function(pluginType, property, sub_proper }; Plugins.prototype.runActionsForEvent = function(eventName, args, cb) { - if (typeof(args) === 'function') { + if (typeof (args) === 'function') { cb = args; } let actionPlugins = this.getPluginsProperty('eventActions', 'eventActions', eventName); @@ -129,7 +129,7 @@ Plugins.prototype.runActionsForEvent = function(eventName, args, cb) { } async.eachLimit(actionPlugins, 1, function(plugin, nextEach) { - if (typeof(args) === 'function') { + if (typeof (args) === 'function') { plugin.call(plugin, nextEach); } else { //plugin.call(plugin, ...args, nextEach);