Skip to content

Commit

Permalink
fix linter
Browse files Browse the repository at this point in the history
  • Loading branch information
pr0n00gler committed Feb 24, 2025
1 parent 9777dca commit 4a39485
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tests/dex/state_cancel_limit_order_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ func removeRedundantCancelLOTests(params []cancelLimitOrderTestParams) []cancelL

func (s *DexStateTestSuite) handleCancelErrors(params cancelLimitOrderTestParams, err error) {
if params.Filled == 100 && params.WithdrawnCreator {
if errors.Is(dextypes.ErrValidLimitOrderTrancheNotFound, err) {
if errors.Is(err, dextypes.ErrValidLimitOrderTrancheNotFound) {
s.T().Skip()
}
}
Expand Down
2 changes: 1 addition & 1 deletion tests/dex/state_deposit_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ func calcExpectedDepositAmounts(params depositTestParams) (tokenAAmount, tokenBA
autoSwapAmountA, autoswapAmountB := calcAutoswapAmount(params)
autoswapValueAsToken0 := calcDepositValueAsToken0(params.Tick, autoSwapAmountA, autoswapAmountB)

autoswapFeeAsPrice := dextypes.MustCalcPrice(-int64(params.Fee))
autoswapFeeAsPrice := dextypes.MustCalcPrice(-int64(params.Fee)) //nolint:gosec
autoswapFeePct := math_utils.OnePrecDec().Sub(autoswapFeeAsPrice)
autoswapFee := autoswapValueAsToken0.Mul(autoswapFeePct)

Expand Down
2 changes: 1 addition & 1 deletion tests/dex/state_withdraw_limit_order_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ func removeRedundantWithdrawLOTests(params []withdrawLimitOrderTestParams) []wit

func (s *DexStateTestSuite) handleWithdrawLimitOrderErrors(params withdrawLimitOrderTestParams, err error) {
if params.Filled == 0 {
if errors.Is(dextypes.ErrWithdrawEmptyLimitOrder, err) {
if errors.Is(err, dextypes.ErrWithdrawEmptyLimitOrder) {
s.T().Skip()
}
}
Expand Down

0 comments on commit 4a39485

Please sign in to comment.