From 394a41ea6772fcd880cf2332fe4119fbb0688c28 Mon Sep 17 00:00:00 2001 From: Osman Abdelnasir Date: Tue, 15 Mar 2022 23:37:46 +0400 Subject: [PATCH] refactor: format switch statement Co-authored-by: Daryl Collins --- src/account_multisig.ts | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/account_multisig.ts b/src/account_multisig.ts index 404289f653..18a229ce1f 100644 --- a/src/account_multisig.ts +++ b/src/account_multisig.ts @@ -275,9 +275,12 @@ export class Account2FA extends AccountMultisig { const multisigStateStatus = await this.checkMultisigStateStatus(contractBytes); switch (multisigStateStatus) { - case MultisigStateStatus.NOT_INITIALIZED: return await super.signAndSendTransactionWithAccount(accountId, newFunctionCallActionBatch); - case MultisigStateStatus.VALID: return await super.signAndSendTransactionWithAccount(accountId, actions); - case MultisigStateStatus.INVALID_STATE: throw this.contractHasExistingStateError; + case MultisigStateStatus.NOT_INITIALIZED: + return await super.signAndSendTransactionWithAccount(accountId, newFunctionCallActionBatch); + case MultisigStateStatus.VALID: + return await super.signAndSendTransactionWithAccount(accountId, actions); + case MultisigStateStatus.INVALID_STATE: + throw this.contractHasExistingStateError; } }