lint is king

This commit is contained in:
Iuri Matias 2018-05-29 09:58:19 -04:00
parent 69e5af2308
commit f1cb7d1187
2 changed files with 4 additions and 4 deletions

View File

@ -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;

View File

@ -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);