mirror of https://github.com/embarklabs/embark.git
lint is king
This commit is contained in:
parent
69e5af2308
commit
f1cb7d1187
|
@ -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;
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue