Skip to content

Commit

Permalink
fix: comment
Browse files Browse the repository at this point in the history
  • Loading branch information
chixiaoxiao committed Mar 13, 2024
1 parent ebc26d7 commit bf63bac
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions x/authz/keeper/genesis.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,8 @@ package keeper

import (
"context"
"fmt"

"cosmossdk.io/x/authz"
"errors"

sdk "github.com/cosmos/cosmos-sdk/types"
)
Expand All @@ -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)
Expand Down

0 comments on commit bf63bac

Please sign in to comment.