Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
jsgoldstein committed Sep 27, 2023
1 parent 33a1928 commit 3886262
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions app/lib/search_query_transformer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -238,13 +238,13 @@ def to_query
rule(clause: subtree(:clause)) do
prefix = clause[:prefix][:term].to_s if clause[:prefix]
operator = clause[:operator]&.to_s
if clause[:phrase]
term = clause[:phrase].map { |term| term[:term].to_s }.join(' ')
elsif clause[:shortcode]
term = clause[:shortcode][:term].to_s
else
term = clause[:term].to_s
end
term = if clause[:phrase]
clause[:phrase].map { |term| term[:term].to_s }.join(' ')
elsif clause[:shortcode]
clause[:shortcode][:term].to_s
else
clause[:term].to_s
end

if clause[:prefix] && SUPPORTED_PREFIXES.include?(prefix)
PrefixClause.new(prefix, operator, term, current_account: current_account)
Expand Down

0 comments on commit 3886262

Please sign in to comment.