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