lint is king

This commit is contained in:
Iuri Matias 2018-05-16 15:18:12 -04:00
parent 8ae6c6a646
commit 00e3af9012
2 changed files with 3 additions and 3 deletions

View File

@ -42,7 +42,7 @@ EventEmitter.prototype.setCommandHandler = function(requestName, cb) {
log("setting command handler for: ", requestName);
let listener = function(_cb) {
cb.call(this, ...arguments);
}
};
// unlike events, commands can only have 1 handler
this.removeAllListeners('request:' + requestName);
return this.on('request:' + requestName, listener);

View File

@ -185,7 +185,7 @@ class Pipeline {
async.waterfall([
function makeDirectory(next) {
fs.mkdirp(fs.dappPath(self.buildDir, 'contracts'), (err, _result) => {
next(err)
next(err);
});
},
function getContracts(next) {
@ -196,7 +196,7 @@ class Pipeline {
function writeContractsJSON(contracts, next) {
async.each(contracts, (contract, eachCb) => {
fs.writeJson(fs.dappPath(self.buildDir, 'contracts', contract.className + ".json"), contract, {spaces: 2}, eachCb);
}, () => {next()});
}, () => { next(); });
}
], cb);
}