Skip to content

Commit

Permalink
Fix comparison operator in createFlows function
Browse files Browse the repository at this point in the history
  • Loading branch information
1nv8rzim committed Dec 7, 2023
1 parent 565112f commit 5b5cefd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion structs/rankChoiceVote.go
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ func createFlows(fromRound Round, toRound Round, eliminated string, round int) [

for _, from := range fromRound.Choices {
for _, to := range toRound.Choices {
if from.Selection == to.Selection {
if from.Selection != to.Selection {
if from.Votes < to.Votes {
rows = append(rows, SanKeyRow{
From: fmt.Sprintf("%v - Round %d", eliminated, round-1),
Expand Down

0 comments on commit 5b5cefd

Please sign in to comment.