From 5bc8c072c8b3a6b35b4229167db8eb1c0660f3de Mon Sep 17 00:00:00 2001 From: lumtis Date: Thu, 18 Apr 2024 13:06:30 +0200 Subject: [PATCH] fix lint --- x/crosschain/types/genesis.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/x/crosschain/types/genesis.go b/x/crosschain/types/genesis.go index 5c5e5add79..834e4ddb9d 100644 --- a/x/crosschain/types/genesis.go +++ b/x/crosschain/types/genesis.go @@ -52,11 +52,7 @@ func (gs GenesisState) Validate() error { gasPriceIndexMap[elem.Index] = true } - if err := gs.RateLimiterFlags.Validate(); err != nil { - return err - } - - return nil + return gs.RateLimiterFlags.Validate() } func GetGenesisStateFromAppState(marshaler codec.JSONCodec, appState map[string]json.RawMessage) GenesisState {