From 29164f348e6aacf9e5f8cff6aeaa43fedcf98645 Mon Sep 17 00:00:00 2001 From: Patrick Toomey Date: Fri, 31 May 2019 08:19:20 -0600 Subject: Use style consistent with surrounding code --- activesupport/lib/active_support/parameter_filter.rb | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'activesupport') diff --git a/activesupport/lib/active_support/parameter_filter.rb b/activesupport/lib/active_support/parameter_filter.rb index 7850fb9467..7114cc8efb 100644 --- a/activesupport/lib/active_support/parameter_filter.rb +++ b/activesupport/lib/active_support/parameter_filter.rb @@ -113,9 +113,7 @@ module ActiveSupport # If we don't pop the current parent it will be duplicated as we # process each array value. parents.pop if deep_regexps - value = value.map do |v| - value_for_key(key, v, parents, original_params) - end + value = value.map { |v| value_for_key(key, v, parents, original_params) } # Restore the parent stack after processing the array. parents.push(key) if deep_regexps elsif blocks.any? -- cgit v1.2.3