From 3e88d9ebb984961d355c33595fabaa98d748bcd1 Mon Sep 17 00:00:00 2001 From: Ariel Valentin Date: Sat, 14 Jan 2023 10:12:40 -0600 Subject: [PATCH] chore: Enable Style/RedundantFetchBlock (#226) --- .rubocop.yml | 2 -- instrumentation/racecar/example/config/racecar.rb | 4 ++-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/.rubocop.yml b/.rubocop.yml index ce39b6baa..899149c39 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -63,5 +63,3 @@ Style/GlobalStdStream: Enabled: false Style/QuotedSymbols: Enabled: false -Style/RedundantFetchBlock: - Enabled: false diff --git a/instrumentation/racecar/example/config/racecar.rb b/instrumentation/racecar/example/config/racecar.rb index a88fc36c5..4a3d98682 100644 --- a/instrumentation/racecar/example/config/racecar.rb +++ b/instrumentation/racecar/example/config/racecar.rb @@ -2,7 +2,7 @@ Racecar.configure do |config| # Each config variable can be set using a writer attribute. - host = ENV.fetch('TEST_KAFKA_HOST') { '127.0.0.1' } - port = ENV.fetch('TEST_KAFKA_PORT') { 29_092 } + host = ENV.fetch('TEST_KAFKA_HOST', '127.0.0.1') + port = ENV.fetch('TEST_KAFKA_PORT', '29092') config.brokers = ["#{host}:#{port}"] end