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