From 34099e1b480456bb96d61bb71ca2c778b5d6c06e Mon Sep 17 00:00:00 2001 From: Puneet <59960662+puneet2019@users.noreply.github.com> Date: Wed, 21 Feb 2024 17:40:56 +0530 Subject: [PATCH] make lint happy (#767) --- x/liquidstake/keeper/liquidstake.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/x/liquidstake/keeper/liquidstake.go b/x/liquidstake/keeper/liquidstake.go index 7f448e02..1a2e6673 100644 --- a/x/liquidstake/keeper/liquidstake.go +++ b/x/liquidstake/keeper/liquidstake.go @@ -456,7 +456,7 @@ func (k Keeper) LiquidUnstake( return time.Time{}, sdk.ZeroInt(), []stakingtypes.UnbondingDelegation{}, sdk.ZeroInt(), types.ErrLiquidValidatorsNotExists } - // prioritise inactive liquid validators in the list to be used in DivideByCurrentWeight + // prioritize inactive liquid validators in the list to be used in DivideByCurrentWeight liquidVals = k.PrioritiseInactiveLiquidValidators(ctx, liquidVals) // crumb may occur due to a decimal error in dividing the unstaking stkXPRT into the weight of liquid validators, it will remain in the NetAmount @@ -548,10 +548,10 @@ func (k Keeper) PrioritiseInactiveLiquidValidators( vs1, vs1ok := k.stakingKeeper.GetValidator(ctx, vs[i].GetOperator()) vs2, vs2ok := k.stakingKeeper.GetValidator(ctx, vs[j].GetOperator()) - if vs1ok == false && vs2ok == true { + if !vs1ok && vs2ok { // only one case when less return true - } else if vs1ok == true && vs2ok == true { + } else if vs1ok && vs2ok { // both exist, compare status vs1Active := vs[i].GetStatus(types.ActiveCondition(