Skip to content

Commit

Permalink
Remove last occurrence of whitelisted_params
Browse files Browse the repository at this point in the history
Even if compact, it has the same meaning.
  • Loading branch information
kennyadsl committed Dec 14, 2020
1 parent 6b5f71e commit fe7de6c
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions app/helpers/canonical_rails/tag_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,8 @@ def allowed_query_string
# https://github.com/rack/rack/blob/9939d40a5e23dcb058751d1029b794aa2f551900/test/spec_utils.rb#L222
# Rack 1.6.0 has it
# https://github.com/rack/rack/blob/65a7104b6b3e9ecd8f33c63a478ab9a33a103507/test/spec_utils.rb#L251

wl_params = allowed_params

"?" + Rack::Utils.build_nested_query(convert_numeric_params(wl_params)) if wl_params.present?
parameters = allowed_params
"?" + Rack::Utils.build_nested_query(convert_numeric_params(parameters)) if parameters.present?
end

private
Expand Down

0 comments on commit fe7de6c

Please sign in to comment.