Fix rubocop issues

This commit is contained in:
Luis Ramos
2020-11-06 11:29:31 +00:00
committed by Matt-Yorkley
parent 2a03e42f2a
commit 0152b4da55

View File

@@ -30,7 +30,6 @@
module ActionDispatch
class Request < Rack::Request
class Utils # :nodoc:
mattr_accessor :perform_deep_munge
self.perform_deep_munge = true
@@ -47,10 +46,11 @@ module ActionDispatch
v.compact!
# This patch removes the following lines
#if v.empty?
# hash[k] = nil
# ActiveSupport::Notifications.instrument("deep_munge.action_controller", keys: keys)
#end
# if v.empty?
# hash[k] = nil
# ActiveSupport::Notifications.instrument("deep_munge.action_controller",
# keys: keys)
# end
when Hash
deep_munge(v, keys)
end