mirror of https://github.com/embarklabs/embark.git
remove useless waterfall
This commit is contained in:
parent
ad136802da
commit
dd1c10fe85
|
@ -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);
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue