Skip to content

Commit

Permalink
linting
Browse files Browse the repository at this point in the history
  • Loading branch information
tuantran1702 committed Mar 20, 2024
1 parent dbd808d commit 90ee8dd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion x/interchainstaking/keeper/deny_list.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package keeper

import (
sdk "github.com/cosmos/cosmos-sdk/types"

"github.com/quicksilver-zone/quicksilver/x/interchainstaking/types"
)

Expand Down Expand Up @@ -42,7 +43,6 @@ func (k *Keeper) GetDeniedValidatorInDenyList(ctx sdk.Context, chainID string, v
}

return val, true

}

// RemoveValidatorFromDenyList removes a validator from the deny list. Panic if the validator is not in the deny list
Expand Down
6 changes: 4 additions & 2 deletions x/interchainstaking/types/error.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,7 @@ import (
"errors"
)

var ErrCoinAmountNil = errors.New("coin amount is nil")
var ErrValidatorAlreadyInDenyList = errors.New("validator already in deny list")
var (
ErrCoinAmountNil = errors.New("coin amount is nil")
ErrValidatorAlreadyInDenyList = errors.New("validator already in deny list")
)

0 comments on commit 90ee8dd

Please sign in to comment.