simplify condition; return callback

This commit is contained in:
Iuri Matias 2017-03-01 21:08:28 -05:00
parent dbb0b0b171
commit c0bcc15023
1 changed files with 6 additions and 6 deletions

View File

@ -74,13 +74,13 @@ Compiler.prototype.compile_solidity = function(contractFiles, cb) {
// TODO: there ino need to load this twice
solcW = new SolcW();
if (solcW.isCompilerLoaded()) {
callback();
} else {
return callback();
}
self.logger.info("loading solc compiler..");
solcW.load_compiler(function(){
callback();
});
}
},
function compileContracts(callback) {
self.logger.info("compiling contracts...");