Merge pull request #152 from TimoSci/patch-1
More concise Rubyish code.
This commit is contained in:
@@ -3,7 +3,7 @@
|
|||||||
@voted = {}
|
@voted = {}
|
||||||
|
|
||||||
def check_voter(name)
|
def check_voter(name)
|
||||||
if @voted.key?(name) && @voted[name]
|
if @voted[name]
|
||||||
puts "kick them out!"
|
puts "kick them out!"
|
||||||
else
|
else
|
||||||
@voted[name] = true
|
@voted[name] = true
|
||||||
|
|||||||
Reference in New Issue
Block a user