Skip to content

Commit d6a1566

Browse files
authored
Get linting green on release-8.x branch (#3574)
1 parent f061f32 commit d6a1566

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

app/controllers/concerns/blacklight/search_context.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ def page_links
4040
@page_link_data[:prev] = page_links_document_path(documents.first, index)
4141
@page_link_data[:next] = page_links_document_path(documents.last, index + 2)
4242
end
43-
if response&.total && response.total.positive?
43+
if response&.total&.positive?
4444
@page_link_data[:counterRaw] = counter_param
4545
@page_link_data[:counterDelimited] = helpers.number_with_delimiter(counter_param.to_i)
4646
@page_link_data[:totalRaw] = response.total

lib/blacklight/configuration/field.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ def validate!
3333
raise ArgumentError, "Must supply a field name" if self.field.nil?
3434
end
3535

36+
# rubocop:disable Style/RedundantParentheses
3637
def display_label(context = nil, **options)
3738
field_label(
3839
(:"blacklight.search.fields.#{context}.#{key}" if context),
@@ -42,6 +43,7 @@ def display_label(context = nil, **options)
4243
**options
4344
)
4445
end
46+
# rubocop:enable Style/RedundantParentheses
4547

4648
def default_label
4749
if self.key.respond_to?(:titleize)

0 commit comments

Comments
 (0)