mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-26 12:29:06 +01:00
Make setProviderType
synchronous (#16879)
The network controller method `setProviderType` was marked as `async` despite doing nothing async internally. The `async` has been dropped. This should have zero functional impact. This relates to https://github.com/MetaMask/controllers/issues/971
This commit is contained in:
parent
5df6f653af
commit
75177c5998
@ -286,7 +286,7 @@ export default class NetworkController extends EventEmitter {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
async setProviderType(type) {
|
setProviderType(type) {
|
||||||
assert.notStrictEqual(
|
assert.notStrictEqual(
|
||||||
type,
|
type,
|
||||||
NETWORK_TYPES.RPC,
|
NETWORK_TYPES.RPC,
|
||||||
|
Loading…
Reference in New Issue
Block a user