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) { 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);
}); });
} }