Skip to content

Commit

Permalink
lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
lumtis committed Aug 9, 2023
1 parent 468ee98 commit dbc3220
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/ante/vesting.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,14 @@ func (vad VestingAccountDecorator) AnteHandle(
next sdk.AnteHandler,
) (newCtx sdk.Context, err error) {
for _, msg := range tx.GetMsgs() {
typeUrl := sdk.MsgTypeURL(msg)
typeURL := sdk.MsgTypeURL(msg)

for _, disabledTypeUrl := range vad.disabledMsgTypeUrls {

Check warning on line 38 in app/ante/vesting.go

View workflow job for this annotation

GitHub Actions / lint

var-naming: range var disabledTypeUrl should be disabledTypeURL (revive)
if typeUrl == disabledTypeUrl {
if typeURL == disabledTypeUrl {
return ctx, errorsmod.Wrapf(
sdkerrors.ErrUnauthorized,
"MsgTypeURL %s not supported",
typeUrl,
typeURL,
)
}
}
Expand Down

0 comments on commit dbc3220

Please sign in to comment.