From 0f986ad235a1aaade17e9cbbd1111afa0cbed5d3 Mon Sep 17 00:00:00 2001 From: legobt <6wbvkn0j@anonaddy.me> Date: Thu, 6 Jun 2024 22:04:32 +0000 Subject: [PATCH] lint:fix --- packages/keyring-controller/src/KeyringController.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/packages/keyring-controller/src/KeyringController.ts b/packages/keyring-controller/src/KeyringController.ts index d3184c7867e..1324b41ef26 100644 --- a/packages/keyring-controller/src/KeyringController.ts +++ b/packages/keyring-controller/src/KeyringController.ts @@ -1004,8 +1004,7 @@ export class KeyringController extends BaseController< privateKey = remove0x(prefixed); break; - case 'json': - { + case 'json': { const getWallet = async (): Promise => { const [input, password] = args; try { @@ -1013,7 +1012,7 @@ export class KeyringController extends BaseController< } catch (e) { return Wallet.fromV3(input, password, true); } - } + }; const wallet = await getWallet(); privateKey = bytesToHex(wallet.getPrivateKey()); break;