coerce boolean value using more commmon !!
This commit is contained in:
parent
ab7784c1e9
commit
4a321e3c0c
|
@ -316,7 +316,7 @@ Blockchain.prototype.initChainAndGetAddress = function(callback) {
|
||||||
};
|
};
|
||||||
|
|
||||||
var BlockchainClient = function(blockchainConfig, client, env, onReadyCallback, onExitCallback) {
|
var BlockchainClient = function(blockchainConfig, client, env, onReadyCallback, onExitCallback) {
|
||||||
const isDev = Boolean(blockchainConfig.isDev);
|
const isDev = !!blockchainConfig.isDev;
|
||||||
// TODO add other clients at some point
|
// TODO add other clients at some point
|
||||||
if (client === 'geth') {
|
if (client === 'geth') {
|
||||||
return new Blockchain({blockchainConfig, client: GethCommands, env, isDev, onReadyCallback, onExitCallback});
|
return new Blockchain({blockchainConfig, client: GethCommands, env, isDev, onReadyCallback, onExitCallback});
|
||||||
|
|
Loading…
Reference in New Issue