X-Git-Url: https://projects.mako.cc/source/rubyvote/blobdiff_plain/cf5965fdd417de3118228fb879a9cd88def215ea..cadb8cabfdcf3cb009319e36102beaf31362da89:/lib/rubyvote/election.rb diff --git a/lib/rubyvote/election.rb b/lib/rubyvote/election.rb index 4499233..4d51d78 100644 --- a/lib/rubyvote/election.rb +++ b/lib/rubyvote/election.rb @@ -63,12 +63,7 @@ class ElectionVote end def filter_out(winner) - if winner.winners[0].class == Array - to_filter = winner.winners[0] - else - to_filter = [winner.winners[0]] - end - @candidates.delete_if {|x| to_filter.include?(x)} + @candidates.delete_if {|x| winner.winners.include?(x)} end end