From bf63bac5b4378eeed9e12a6c16c81e571711bfd9 Mon Sep 17 00:00:00 2001 From: chixiaoxiao Date: Wed, 13 Mar 2024 18:07:23 +0800 Subject: [PATCH] fix: comment --- x/authz/keeper/genesis.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/x/authz/keeper/genesis.go b/x/authz/keeper/genesis.go index 1d2391094a7c..de80bfea142e 100644 --- a/x/authz/keeper/genesis.go +++ b/x/authz/keeper/genesis.go @@ -2,9 +2,8 @@ package keeper import ( "context" - "fmt" - "cosmossdk.io/x/authz" + "errors" sdk "github.com/cosmos/cosmos-sdk/types" ) @@ -29,7 +28,7 @@ func (k Keeper) InitGenesis(ctx context.Context, data *authz.GenesisState) error a, ok := entry.Authorization.GetCachedValue().(authz.Authorization) if !ok { - return fmt.Errorf("expected authorization") + return errors.New("expected authorization") } err = k.SaveGrant(ctx, grantee, granter, a, entry.Expiration)