aboutsummaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorkumavis <aaron@kumavis.me>2018-05-01 07:23:16 +0800
committerkumavis <aaron@kumavis.me>2018-05-01 07:23:16 +0800
commitbfedd2776d1fa668259488a5216c533b4e959fb0 (patch)
tree32f391de70054539fc3d5030758f44da43a31637 /app
parent5ec631cad34a31a1268c990f0b952453ce97090b (diff)
downloadtangerine-wallet-browser-bfedd2776d1fa668259488a5216c533b4e959fb0.tar
tangerine-wallet-browser-bfedd2776d1fa668259488a5216c533b4e959fb0.tar.gz
tangerine-wallet-browser-bfedd2776d1fa668259488a5216c533b4e959fb0.tar.bz2
tangerine-wallet-browser-bfedd2776d1fa668259488a5216c533b4e959fb0.tar.lz
tangerine-wallet-browser-bfedd2776d1fa668259488a5216c533b4e959fb0.tar.xz
tangerine-wallet-browser-bfedd2776d1fa668259488a5216c533b4e959fb0.tar.zst
tangerine-wallet-browser-bfedd2776d1fa668259488a5216c533b4e959fb0.zip
controllers - network - more semantic assert
Diffstat (limited to 'app')
-rw-r--r--app/scripts/controllers/network/network.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/scripts/controllers/network/network.js b/app/scripts/controllers/network/network.js
index 2f5b81cd2..3e4bfa020 100644
--- a/app/scripts/controllers/network/network.js
+++ b/app/scripts/controllers/network/network.js
@@ -111,7 +111,7 @@ module.exports = class NetworkController extends EventEmitter {
}
async setProviderType (type, forceUpdate = false) {
- assert(type !== 'rpc', `NetworkController.setProviderType - cannot connect by type "rpc"`)
+ assert.notEqual(type, 'rpc', `NetworkController.setProviderType - cannot connect by type "rpc"`)
// skip if type already matches
if (type === this.getProviderConfig().type && !forceUpdate) {
return