]> projects.mako.cc - selectricity/blobdiff - lib/rubyvote/irv.rb
Fix crasher when nil is passed to ident_to_quickvote
[selectricity] / lib / rubyvote / irv.rb
index b26b1d1990720fe85cf5e78774bbd8642098e378..c3fabe6e488de75352c1ae53305e0a1b0785022c 100644 (file)
@@ -88,7 +88,7 @@ class InstantRunoffResult < ElectionResult
     end
     
     unless votes.length > 0
-      @winners=[nil]
+      @winners=[]
       return
     end
 

Benjamin Mako Hill || Want to submit a patch?