From c3ee9a10c76bc79837acf1d8e73b30a4edd85882 Mon Sep 17 00:00:00 2001 From: skosito Date: Tue, 2 Apr 2024 16:36:45 +0200 Subject: [PATCH] Remove todo --- x/observer/types/ballot.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/x/observer/types/ballot.go b/x/observer/types/ballot.go index d9b49774c5..b9619d16ff 100644 --- a/x/observer/types/ballot.go +++ b/x/observer/types/ballot.go @@ -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)) } @@ -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 }