]> projects.mako.cc - rubyvote/commitdiff
formatting fixes
authorBenjamin Mako Hill <mako@atdot.cc>
Thu, 16 Aug 2007 22:34:17 +0000 (22:34 +0000)
committerBenjamin Mako Hill <mako@atdot.cc>
Thu, 16 Aug 2007 22:34:17 +0000 (22:34 +0000)
git-svn-id: svn://rubyforge.org/var/svn/rubyvote/trunk@41 1440c7f4-e209-0410-9a04-881b5eb134a8

lib/rubyvote/condorcet.rb

index 715399566e270db367d311c9a26d2f7c08fd1bcf..08fd2dfed617dcb36baf253aec7960abdf5d7041 100644 (file)
@@ -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

Benjamin Mako Hill || Want to submit a patch?