Skip to content

Commit 4a39485

Browse files
committed
fix linter
1 parent 9777dca commit 4a39485

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

tests/dex/state_cancel_limit_order_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ func removeRedundantCancelLOTests(params []cancelLimitOrderTestParams) []cancelL
146146

147147
func (s *DexStateTestSuite) handleCancelErrors(params cancelLimitOrderTestParams, err error) {
148148
if params.Filled == 100 && params.WithdrawnCreator {
149-
if errors.Is(dextypes.ErrValidLimitOrderTrancheNotFound, err) {
149+
if errors.Is(err, dextypes.ErrValidLimitOrderTrancheNotFound) {
150150
s.T().Skip()
151151
}
152152
}

tests/dex/state_deposit_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ func calcExpectedDepositAmounts(params depositTestParams) (tokenAAmount, tokenBA
199199
autoSwapAmountA, autoswapAmountB := calcAutoswapAmount(params)
200200
autoswapValueAsToken0 := calcDepositValueAsToken0(params.Tick, autoSwapAmountA, autoswapAmountB)
201201

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

tests/dex/state_withdraw_limit_order_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ func removeRedundantWithdrawLOTests(params []withdrawLimitOrderTestParams) []wit
157157

158158
func (s *DexStateTestSuite) handleWithdrawLimitOrderErrors(params withdrawLimitOrderTestParams, err error) {
159159
if params.Filled == 0 {
160-
if errors.Is(dextypes.ErrWithdrawEmptyLimitOrder, err) {
160+
if errors.Is(err, dextypes.ErrWithdrawEmptyLimitOrder) {
161161
s.T().Skip()
162162
}
163163
}

0 commit comments

Comments
 (0)