Skip to content

Commit

Permalink
Run rubocop autocorrect
Browse files Browse the repository at this point in the history
  • Loading branch information
corylown committed Jun 28, 2024
1 parent 5e81cee commit fe78c62
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion app/controllers/spotlight/solr_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,10 @@ def update

data = solr_documents

@exhibit.blacklight_config.repository.connection.update params: { commitWithin: 500 }, data: data.to_json, headers: { 'Content-Type' => 'application/json' } unless data.empty?
unless data.empty?
@exhibit.blacklight_config.repository.connection.update params: { commitWithin: 500 }, data: data.to_json,
headers: { 'Content-Type' => 'application/json' }
end

if params[:resources_json_upload]
redirect_back fallback_location: exhibit_resources_path(@exhibit)
Expand Down

0 comments on commit fe78c62

Please sign in to comment.