controllers - network - more semantic assert

feature/default_network_editable
kumavis 7 years ago
parent 5ec631cad3
commit bfedd2776d
  1. 2
      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

Loading…
Cancel
Save