From 5b5cefdceaf3e5449d09644a31e7df44e0b83c19 Mon Sep 17 00:00:00 2001 From: 1nv8rZim Date: Thu, 7 Dec 2023 16:10:50 -0500 Subject: [PATCH] Fix comparison operator in createFlows function --- structs/rankChoiceVote.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/structs/rankChoiceVote.go b/structs/rankChoiceVote.go index ae3acc9..01a3575 100644 --- a/structs/rankChoiceVote.go +++ b/structs/rankChoiceVote.go @@ -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),