1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-22 18:00:18 +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:
Mark Stacey 2022-12-13 13:57:48 -03:30 committed by GitHub
parent 5df6f653af
commit 75177c5998
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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,