Skip to content

Commit

Permalink
test: fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
snobbee committed Nov 23, 2023
1 parent a43d3dc commit 4ccb602
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions x/clp/keeper/liquidityprovider_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -134,9 +134,9 @@ func TestKeeper_GetRewardsEligibleLiquidityProviders(t *testing.T) {
asset := lp.Asset
assetLps := rewardsEligibleLps[*asset]
if (i % 2) == 0 {
require.NotContains(t, assetLps, &lp)
require.NotContains(t, assetLps, &lp) //nolint:gosec
} else {
require.Contains(t, assetLps, &lp)
require.Contains(t, assetLps, &lp) //nolint:gosec
}
}
}
2 changes: 1 addition & 1 deletion x/clp/keeper/rewards_bucket.go
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ func (k Keeper) DistributeLiquidityProviderRewards(ctx sdk.Context, lp *types.Li
return err
}

// substract the reward amount from the rewards bucket
// subtract the reward amount from the rewards bucket
err = k.SubtractFromRewardsBucket(ctx, asset, rewardAmount)
if err != nil {
return err
Expand Down
2 changes: 1 addition & 1 deletion x/epochs/keeper/epoch_infos_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ func TestEpochInfoGet(t *testing.T) {
)
require.True(t, found)
require.Equal(t,
nullify.Fill(&item),
nullify.Fill(&item), //nolint:gosec
nullify.Fill(&rst),
)
}
Expand Down

0 comments on commit 4ccb602

Please sign in to comment.