From daa5138e26aa2c86b8373b8d954a5225dbf936c6 Mon Sep 17 00:00:00 2001 From: Kant Date: Wed, 13 Nov 2024 11:32:56 +0100 Subject: [PATCH] fix: lint issue on missing break --- libs/coin-modules/coin-solana/src/synchronization.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/libs/coin-modules/coin-solana/src/synchronization.ts b/libs/coin-modules/coin-solana/src/synchronization.ts index e59f72feaccd..b0ac0c3618a0 100644 --- a/libs/coin-modules/coin-solana/src/synchronization.ts +++ b/libs/coin-modules/coin-solana/src/synchronization.ts @@ -593,10 +593,10 @@ function getMainAccOperationTypeFromTx(tx: ParsedTransaction): OperationType | u switch (first.program) { case "spl-associated-token-account": - switch (first.instruction.type) { - case "associate": - return "OPT_IN"; + if (first.instruction.type === "associate") { + return "OPT_IN"; } + break; case "spl-token": switch (first.instruction.type) { case "closeAccount": @@ -668,10 +668,10 @@ function getTokenAccOperationType({ if (mainIx !== undefined && otherIxs.length === 0) { switch (mainIx.program) { case "spl-associated-token-account": - switch (mainIx.instruction.type) { - case "associate": - return "NONE"; // ATA opt-in operation is added to the main account + if (mainIx.instruction.type === "associate") { + return "NONE"; // ATA opt-in operation is added to the main account } + break; case "spl-token": switch (mainIx.instruction.type) { case "freezeAccount":