From 4ccb602e3b5f7e18353d831e28205046808a39b7 Mon Sep 17 00:00:00 2001 From: Snobbish Bee <125891987+snobbee@users.noreply.github.com> Date: Thu, 23 Nov 2023 08:24:05 +0100 Subject: [PATCH] test: fix lint --- x/clp/keeper/liquidityprovider_test.go | 4 ++-- x/clp/keeper/rewards_bucket.go | 2 +- x/epochs/keeper/epoch_infos_test.go | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/x/clp/keeper/liquidityprovider_test.go b/x/clp/keeper/liquidityprovider_test.go index f1d351bd40..467acd5e9f 100644 --- a/x/clp/keeper/liquidityprovider_test.go +++ b/x/clp/keeper/liquidityprovider_test.go @@ -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 } } } diff --git a/x/clp/keeper/rewards_bucket.go b/x/clp/keeper/rewards_bucket.go index 69fc534cd5..abd2f0f777 100644 --- a/x/clp/keeper/rewards_bucket.go +++ b/x/clp/keeper/rewards_bucket.go @@ -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 diff --git a/x/epochs/keeper/epoch_infos_test.go b/x/epochs/keeper/epoch_infos_test.go index 8e1401ab46..f72b903249 100644 --- a/x/epochs/keeper/epoch_infos_test.go +++ b/x/epochs/keeper/epoch_infos_test.go @@ -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), ) }