lib/contrast/config/env_variables.rb in contrast-agent-4.13.1 vs lib/contrast/config/env_variables.rb in contrast-agent-4.14.0

- old
+ new

@@ -3,23 +3,16 @@ module Contrast module Config # This module is holding all the Env Variables that we could use through the agent lifecycle module EnvVariables - ENV_VARIABLES = { - telemetry_opt_outs: ENV['CONTRAST_AGENT_TELEMETRY_OPTOUT'].to_s || Contrast::Config::DefaultValue.new('false') - }.cs__freeze + ENV_VARIABLES = { telemetry_opt_outs: ENV['CONTRAST_AGENT_TELEMETRY_OPTOUT'].to_s || false }.cs__freeze def return_value key return unless ENV_VARIABLES.key?(key.to_sym) sym_key = key.downcase.to_sym - return_val = ENV_VARIABLES[sym_key] - if return_val.is_a?(Contrast::Config::DefaultValue) - return_val.value - else - return_val - end + ENV_VARIABLES[sym_key] end end end end