simplify condition; return callback
This commit is contained in:
parent
dbb0b0b171
commit
c0bcc15023
|
@ -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...");
|
||||
|
|
Loading…
Reference in New Issue