fix empty empty notVotedForCandidates problem
This commit is contained in:
parent
d54bcedad9
commit
ffb200c7e9
1 changed files with 1 additions and 1 deletions
|
|
@ -7,7 +7,7 @@ import qualified Data.Maybe as M
|
||||||
import qualified Data.Ord as O
|
import qualified Data.Ord as O
|
||||||
|
|
||||||
solve :: forall a. Ord a => [a] -> LN.NonEmpty (LN.NonEmpty a) -> [S.Set a]
|
solve :: forall a. Ord a => [a] -> LN.NonEmpty (LN.NonEmpty a) -> [S.Set a]
|
||||||
solve candidates votes = (reverse solved) ++ [notVotedForCandidates]
|
solve candidates votes = (reverse solved) ++ if (S.null notVotedForCandidates) then [] else [notVotedForCandidates]
|
||||||
where
|
where
|
||||||
|
|
||||||
-- candidates not on any submitted ballot
|
-- candidates not on any submitted ballot
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue