Skip to content

Commit

Permalink
Revert method chain indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
jazairi committed Mar 7, 2024
1 parent 8a0400b commit d5859bd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/controllers/search_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,9 @@ def extract_filters(response)
# our filter fields do (e.g., 'source' vs 'sourceFilter'). Because of this mismatch, we need to modify the
# aggregation key names before collecting them as filters, so that when a filter is applied, it searches the
# correct field name.
aggs.select { |_, agg_values| agg_values.present? }.transform_keys { |key| (key.dup << 'Filter').to_sym }
aggs
.select { |_, agg_values| agg_values.present? }
.transform_keys { |key| (key.dup << 'Filter').to_sym }
end

def extract_results(response)
Expand Down

0 comments on commit d5859bd

Please sign in to comment.