From 00afdac0dfc6a9073e196a80e62a203ffcc457bf Mon Sep 17 00:00:00 2001 From: Benjamin Mako Hill Date: Thu, 16 Aug 2007 22:34:17 +0000 Subject: [PATCH] formatting fixes git-svn-id: svn://rubyforge.org/var/svn/rubyvote/trunk@41 1440c7f4-e209-0410-9a04-881b5eb134a8 --- lib/rubyvote/condorcet.rb | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/rubyvote/condorcet.rb b/lib/rubyvote/condorcet.rb index 7153995..08fd2df 100644 --- a/lib/rubyvote/condorcet.rb +++ b/lib/rubyvote/condorcet.rb @@ -208,10 +208,11 @@ class PureCondorcetResult < CondorcetResult def condorcet votes = @election.votes candidates = @election.candidates - unless votes.length>0 and candidates.length>0 - @winners=[] - return @winners + + unless votes.length > 0 and candidates.length > 0 + return @winners=[] end + victors = Hash.new candidates.each do |candidate| victors[candidate] = Array.new -- 2.39.5