Skip to content

Commit

Permalink
Put the dots in the same position consistently
Browse files Browse the repository at this point in the history
  • Loading branch information
jcoyne committed Sep 1, 2017
1 parent 1b64d5a commit 408287c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 12 deletions.
8 changes: 0 additions & 8 deletions .rubocop_todo.yml
Expand Up @@ -121,14 +121,6 @@ Style/ConditionalAssignment:
Style/Documentation:
Enabled: false

# Offense count: 7
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, SupportedStyles.
# SupportedStyles: leading, trailing
Layout/DotPosition:
Exclude:
- 'lib/blacklight/search_builder.rb'

# Offense count: 1
Style/DoubleNegation:
Exclude:
Expand Down
8 changes: 4 additions & 4 deletions lib/blacklight/search_builder.rb
Expand Up @@ -109,10 +109,10 @@ def reverse_merge(extra_params, &block)
# @return [Blacklight::Solr::Response] the solr response object
def to_hash
return @params unless params_need_update?
@params = processed_parameters.
reverse_merge(@reverse_merged_params).
merge(@merged_params).
tap { clear_changes }
@params = processed_parameters
.reverse_merge(@reverse_merged_params)
.merge(@merged_params)
.tap { clear_changes }
end

alias_method :query, :to_hash
Expand Down

0 comments on commit 408287c

Please sign in to comment.