Skip to content

Commit

Permalink
Rubocop autocorrect
Browse files Browse the repository at this point in the history
  • Loading branch information
taylor-steve committed Oct 15, 2024
1 parent ccce0a7 commit d82fcc2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions app/models/spotlight/custom_field.rb
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def label=(label)
end

def label
conf = if field && blacklight_configuration && blacklight_configuration.index_fields.key?(field)
conf = if field && blacklight_configuration&.index_fields&.key?(field)
blacklight_configuration.index_fields[field].reverse_merge(configuration)
else
configuration
Expand Down Expand Up @@ -74,7 +74,7 @@ def blacklight_configuration
end

def update_blacklight_configuration_label(label)
return unless field && blacklight_configuration && blacklight_configuration.index_fields.key?(field)
return unless field && blacklight_configuration&.index_fields&.key?(field)

blacklight_configuration.index_fields[field]['label'] = label
blacklight_configuration.save
Expand Down
4 changes: 2 additions & 2 deletions app/models/spotlight/custom_search_field.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def label=(label)
end

def label
conf = if slug && blacklight_configuration && blacklight_configuration.search_fields.key?(slug)
conf = if slug && blacklight_configuration&.search_fields&.key?(slug)
blacklight_configuration.search_fields[slug].reverse_merge(configuration)
else
configuration
Expand All @@ -32,7 +32,7 @@ def blacklight_configuration
end

def update_blacklight_configuration_label(label)
return unless slug && blacklight_configuration && blacklight_configuration.search_fields.key?(slug)
return unless slug && blacklight_configuration&.search_fields&.key?(slug)

blacklight_configuration.search_fields[slug]['label'] = label
blacklight_configuration.save
Expand Down

0 comments on commit d82fcc2

Please sign in to comment.