lib/aspecto/opentelemetry/configurator.rb in aspecto-opentelemetry-0.1.7.rc0 vs lib/aspecto/opentelemetry/configurator.rb in aspecto-opentelemetry-0.1.7

- old
+ new

@@ -44,14 +44,12 @@ ::OpenTelemetry::SDK::Resources::Resource.create(@override_resource_attributes) end def self.bool_env_variable(env_variable_name, default_value) env_value = ENV[env_variable_name] - if env_value.nil? - default_value - else - TRUTHY_VALUES.include?(env_value.strip) - end + return default_value if env_value.nil? + + TRUTHY_VALUES.include?(env_value.strip) end end end end