lib/new_relic/agent/datastores/mongo/obfuscator.rb in newrelic_rpm-8.2.0 vs lib/new_relic/agent/datastores/mongo/obfuscator.rb in newrelic_rpm-8.3.0

- old
+ new

@@ -5,11 +5,10 @@ module NewRelic module Agent module Datastores module Mongo module Obfuscator - ALLOWLIST = [:operation].freeze def self.obfuscate_statement(source, allowlist = ALLOWLIST) if source.is_a? Hash obfuscated = {} @@ -30,10 +29,10 @@ def self.obfuscate_value(value, allowlist = ALLOWLIST) if value.is_a?(Hash) obfuscate_statement(value, allowlist) elsif value.is_a?(Array) - value.map {|v| obfuscate_value(v, allowlist)} + value.map { |v| obfuscate_value(v, allowlist) } else QUESTION_MARK end end end