Skip to content

Commit

Permalink
Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
skosito committed Apr 3, 2024
1 parent 936bde8 commit f502001
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions x/observer/types/ballot.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ package types
import (
"fmt"

"cosmossdk.io/errors"
cosmoserrors "cosmossdk.io/errors"
sdk "github.com/cosmos/cosmos-sdk/types"
)
Expand All @@ -16,7 +15,7 @@ func (m Ballot) AddVote(address string, vote VoteType) (Ballot, error) {
// `index` is used to set the vote in the `Votes` array
index := m.GetVoterIndex(address)
if index == -1 {
return m, errors.Wrap(ErrUnableToAddVote, fmt.Sprintf("Voter %s not in voter list", address))
return m, cosmoserrors.Wrap(ErrUnableToAddVote, fmt.Sprintf("Voter %s not in voter list", address))
}
m.Votes[index] = vote
return m, nil
Expand Down

0 comments on commit f502001

Please sign in to comment.