coerce boolean value using more commmon !!

This commit is contained in:
Iuri Matias 2018-09-19 12:25:50 -04:00 committed by emizzle
parent ab7784c1e9
commit 4a321e3c0c
1 changed files with 1 additions and 1 deletions

View File

@ -316,7 +316,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});