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) {
|
compile_vyper(contractFiles, cb) {
|
||||||
let self = this;
|
let self = this;
|
||||||
async.waterfall([
|
if (!contractFiles || !contractFiles.length) {
|
||||||
function compileContracts(callback) {
|
return cb();
|
||||||
self.logger.info("compiling vyper contracts...");
|
}
|
||||||
|
self.logger.info("compiling Vyper contracts...");
|
||||||
const compiled_object = {};
|
const compiled_object = {};
|
||||||
async.each(contractFiles,
|
async.each(contractFiles,
|
||||||
function (file, fileCb) {
|
function (file, fileCb) {
|
||||||
|
@ -65,11 +66,7 @@ class Vyper {
|
||||||
], fileCb);
|
], fileCb);
|
||||||
},
|
},
|
||||||
function (err) {
|
function (err) {
|
||||||
callback(err, compiled_object);
|
cb(err, compiled_object);
|
||||||
});
|
|
||||||
}
|
|
||||||
], function (err, result) {
|
|
||||||
cb(err, result);
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue