Skip to content

Commit

Permalink
fix: lint issue on missing break
Browse files Browse the repository at this point in the history
  • Loading branch information
Justkant committed Nov 13, 2024
1 parent 5638f7b commit daa5138
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions libs/coin-modules/coin-solana/src/synchronization.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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":
Expand Down Expand Up @@ -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":
Expand Down

0 comments on commit daa5138

Please sign in to comment.