From 00e3af901255e8f8cf3ec04897e84fb313819df3 Mon Sep 17 00:00:00 2001 From: Iuri Matias Date: Wed, 16 May 2018 15:18:12 -0400 Subject: [PATCH] lint is king --- lib/core/events.js | 2 +- lib/pipeline/pipeline.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/core/events.js b/lib/core/events.js index c10a3125a..19b4dc74f 100644 --- a/lib/core/events.js +++ b/lib/core/events.js @@ -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); diff --git a/lib/pipeline/pipeline.js b/lib/pipeline/pipeline.js index 1bf377cc2..1c37a0bca 100644 --- a/lib/pipeline/pipeline.js +++ b/lib/pipeline/pipeline.js @@ -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); }