Merge pull request #152 from TimoSci/patch-1

More concise Rubyish code.
This commit is contained in:
Aditya Bhargava
2020-09-14 10:52:00 -05:00
committed by GitHub

View File

@@ -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