remove useless waterfall

This commit is contained in:
Jonathan Rainville 2018-04-16 13:10:55 -04:00
parent ad136802da
commit dd1c10fe85
1 changed files with 52 additions and 55 deletions

View File

@ -14,9 +14,10 @@ class Vyper {
compile_vyper(contractFiles, cb) {
let self = this;
async.waterfall([
function compileContracts(callback) {
self.logger.info("compiling vyper contracts...");
if (!contractFiles || !contractFiles.length) {
return cb();
}
self.logger.info("compiling Vyper contracts...");
const compiled_object = {};
async.each(contractFiles,
function (file, fileCb) {
@ -65,11 +66,7 @@ class Vyper {
], fileCb);
},
function (err) {
callback(err, compiled_object);
});
}
], function (err, result) {
cb(err, result);
cb(err, compiled_object);
});
}