mirror of https://github.com/embarklabs/embark.git
Boolean() -> !!
This commit is contained in:
parent
665856f838
commit
5d4ac32a2a
|
@ -343,7 +343,7 @@ Blockchain.prototype.initChainAndGetAddress = function(callback) {
|
|||
};
|
||||
|
||||
var BlockchainClient = function(blockchainConfig, client, env, onReadyCallback, onExitCallback) {
|
||||
const isDev = Boolean(blockchainConfig.isDev);
|
||||
const isDev = !!blockchainConfig.isDev;
|
||||
// TODO add other clients at some point
|
||||
if (client === 'geth') {
|
||||
return new Blockchain({blockchainConfig, client: GethCommands, env, isDev, onReadyCallback, onExitCallback});
|
||||
|
|
Loading…
Reference in New Issue