Skip to content

Commit

Permalink
&. is a Ruby 2.3 feature, thus breaking gem for users using lower ver…
Browse files Browse the repository at this point in the history
…sions
  • Loading branch information
samlehman committed Apr 15, 2021
1 parent 876273d commit 048392d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/excon/utils.rb
Expand Up @@ -50,7 +50,7 @@ def redact(datum)
if datum.has_key?(:password)
datum[:password] = REDACTED
end
if datum.has_key?(:proxy) && datum[:proxy]&.has_key?(:password)
if datum.has_key?(:proxy) && datum[:proxy] && datum[:proxy].has_key?(:password)
datum[:proxy] = datum[:proxy].dup
datum[:proxy][:password] = REDACTED
end
Expand Down

0 comments on commit 048392d

Please sign in to comment.