X-Git-Url: https://projects.mako.cc/source/rubyvote/blobdiff_plain/d28df2a4166aa83fd9a0eb1f5a0599b8fc1c9798..11d22a5307695910493266b16718e1ffa201676d:/lib/rubyvote/election.rb diff --git a/lib/rubyvote/election.rb b/lib/rubyvote/election.rb index b9bb557..42f18bb 100644 --- a/lib/rubyvote/election.rb +++ b/lib/rubyvote/election.rb @@ -133,7 +133,7 @@ class ElectionResult end def winner? - @winners.length > 0 + @winners.length > 0 and not @winners[0].nil? end end