From c3f2457ae78130213814f7ffeaa6b65af63b76d5 Mon Sep 17 00:00:00 2001 From: Peter Bukva Date: Tue, 5 Sep 2023 13:49:21 +0100 Subject: [PATCH] Dropping unnecessary check --- x/mint/cache/municipal_inflation_cahe.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x/mint/cache/municipal_inflation_cahe.go b/x/mint/cache/municipal_inflation_cahe.go index 7b61dc6c38..38d8a12849 100644 --- a/x/mint/cache/municipal_inflation_cahe.go +++ b/x/mint/cache/municipal_inflation_cahe.go @@ -65,7 +65,7 @@ func (cache *MunicipalInflationCache) GetInflation(denom string) *MunicipalInfla infl, exists := val.(*MunicipalInflationCacheInternal).inflations[denom] - if exists && infl != nil { + if exists { return infl }