X-Git-Url: https://projects.mako.cc/source/rubyvote/blobdiff_plain/9953cb5cdef82f0e44f07dd089fde77ede170712..11d22a5307695910493266b16718e1ffa201676d:/lib/rubyvote/election.rb?ds=sidebyside 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