Skip to content

Commit

Permalink
lint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
shuhuiluo committed Nov 4, 2024
1 parent 833362c commit 5fa79bc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sdks/v3-sdk/src/entities/trade.ts
Original file line number Diff line number Diff line change
Expand Up @@ -518,7 +518,7 @@ export class Trade<TInput extends Currency, TOutput extends Currency, TTradeType
;[amountOut] = await pool.getOutputAmount(amountIn)
} catch (error) {
// not enough liquidity in this pool
if ((error as Error).message == 'INSUFFICIENT_LIQUIDITY') {
if ((error as Error).message === 'INSUFFICIENT_LIQUIDITY') {
continue
}
throw error
Expand Down Expand Up @@ -599,7 +599,7 @@ export class Trade<TInput extends Currency, TOutput extends Currency, TTradeType
;[amountIn] = await pool.getInputAmount(amountOut)
} catch (error) {
// not enough liquidity in this pool
if ((error as Error).message == 'INSUFFICIENT_LIQUIDITY') {
if ((error as Error).message === 'INSUFFICIENT_LIQUIDITY') {
continue
}
throw error
Expand Down

0 comments on commit 5fa79bc

Please sign in to comment.