Skip to content

Commit

Permalink
make linter
Browse files Browse the repository at this point in the history
  • Loading branch information
jgimeno committed Sep 8, 2023
1 parent 52f61d3 commit e47c89b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions x/perp/v2/integration/assertion/market.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package assertion

import (
"fmt"

"github.com/NibiruChain/nibiru/x/common/testutil/action"

sdkmath "cosmossdk.io/math"
Expand Down
2 changes: 1 addition & 1 deletion x/perp/v2/keeper/grpc_query.go
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ func (q queryServer) QueryMarkets(
markets := q.k.Markets.Iterate(ctx, collections.Range[collections.Pair[asset.Pair, uint64]]{}).Values()
for _, market := range markets {
// disabled markets are not returned
if market.Enabled == false {
if !market.Enabled {
continue

Check warning on line 176 in x/perp/v2/keeper/grpc_query.go

View check run for this annotation

Codecov / codecov/patch

x/perp/v2/keeper/grpc_query.go#L176

Added line #L176 was not covered by tests
}

Expand Down
2 changes: 1 addition & 1 deletion x/perp/v2/module/abci.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ func EndBlocker(ctx sdk.Context, k keeper.Keeper) []abci.ValidatorUpdate {
}

// only snapshot enabled markets
if market.Enabled == false {
if !market.Enabled {
continue

Check warning on line 25 in x/perp/v2/module/abci.go

View check run for this annotation

Codecov / codecov/patch

x/perp/v2/module/abci.go#L25

Added line #L25 was not covered by tests
}

Expand Down

0 comments on commit e47c89b

Please sign in to comment.