Skip to content

Commit

Permalink
Remove todo
Browse files Browse the repository at this point in the history
  • Loading branch information
skosito committed Apr 2, 2024
1 parent 7a10802 commit c3ee9a1
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions x/observer/types/ballot.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ func (m Ballot) AddVote(address string, vote VoteType) (Ballot, error) {
// `index` is the index of the `address` in the `VoterList`
// `index` is used to set the vote in the `Votes` array
index := m.GetVoterIndex(address)
// TODO: is this valid possibility?
if index == -1 {
return m, errors.Wrap(ErrUnableToAddVote, fmt.Sprintf("Voter %s not in voter list", address))
}
Expand All @@ -24,7 +23,6 @@ func (m Ballot) AddVote(address string, vote VoteType) (Ballot, error) {

func (m Ballot) HasVoted(address string) bool {
index := m.GetVoterIndex(address)
// TODO: is this valid possibility? can m.Votes[index] be nil?
if index == -1 {
return false
}
Expand Down

0 comments on commit c3ee9a1

Please sign in to comment.