File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed
app/controllers/concerns/blacklight
lib/blacklight/configuration Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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 )
You can’t perform that action at this time.
0 commit comments