mirror of
https://github.com/status-im/embark-area-51.git
synced 2025-01-23 21:58:48 +00:00
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 {
|
||||
self.logger.info("loading solc compiler..");
|
||||
solcW.load_compiler(function(){
|
||||
callback();
|
||||
});
|
||||
return callback();
|
||||
}
|
||||
|
||||
self.logger.info("loading solc compiler..");
|
||||
solcW.load_compiler(function(){
|
||||
callback();
|
||||
});
|
||||
},
|
||||
function compileContracts(callback) {
|
||||
self.logger.info("compiling contracts...");
|
||||
|
Loading…
x
Reference in New Issue
Block a user