From 12c69e842975a5e0fdb89ce05c7427700eca7d1b Mon Sep 17 00:00:00 2001 From: Vitor Oliveira Date: Fri, 3 Sep 2021 13:30:10 -0700 Subject: [PATCH] fix lint --- data_structures/hash_table/fizz_buzz.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/data_structures/hash_table/fizz_buzz.rb b/data_structures/hash_table/fizz_buzz.rb index aac75f0..84cc028 100644 --- a/data_structures/hash_table/fizz_buzz.rb +++ b/data_structures/hash_table/fizz_buzz.rb @@ -33,18 +33,18 @@ def fizz_buzz(n) str = [] fizz_buzz = {} - fizz_buzz[3] = "Fizz" - fizz_buzz[5] = "Buzz" + fizz_buzz[3] = 'Fizz' + fizz_buzz[5] = 'Buzz' n.times do |i| i += 1 - num_str = "" + num_str = '' fizz_buzz.each do |key, value| num_str += value if i % key == 0 end - num_str = i.to_s if num_str == "" + num_str = i.to_s if num_str == '' str.push(num_str) end