From 90646aa5047f69097f03349db9d9deeaea62108e Mon Sep 17 00:00:00 2001 From: rbajollari Date: Mon, 23 Oct 2023 14:15:54 -0400 Subject: [PATCH] lint --- x/oracle/keeper/param_update_plan.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/x/oracle/keeper/param_update_plan.go b/x/oracle/keeper/param_update_plan.go index 5c2cc4e3..e04abc23 100644 --- a/x/oracle/keeper/param_update_plan.go +++ b/x/oracle/keeper/param_update_plan.go @@ -40,11 +40,7 @@ func (k Keeper) ClearParamUpdatePlan(ctx sdk.Context, planHeight uint64) error { func (k Keeper) haveParamUpdatePlan(ctx sdk.Context, planHeight uint64) bool { store := ctx.KVStore(k.storeKey) bz := store.Get(types.KeyParamUpdatePlan(planHeight)) - if bz == nil { - return false - } - - return true + return bz != nil } // GetParamUpdatePlans returns all the param update plans in the store.