Skip to content

Commit

Permalink
do not fail on false, check for nil
Browse files Browse the repository at this point in the history
  • Loading branch information
mabdinur authored Jun 7, 2024
1 parent 00fe446 commit 9170a7c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/datadog/core/configuration/option.rb
Original file line number Diff line number Diff line change
Expand Up @@ -290,10 +290,10 @@ def set_value_from_env_or_default

if definition.env
Array(definition.env).each do |env|
next unless (env_val = ENV[env])
next if ENV[env].nil?

resolved_env = env
value = coerce_env_variable(env_val)
value = coerce_env_variable(ENV[env])
precedence = Precedence::PROGRAMMATIC
break
end
Expand Down

0 comments on commit 9170a7c

Please sign in to comment.