Skip to content

Commit

Permalink
remove puts
Browse files Browse the repository at this point in the history
  • Loading branch information
FinnIckler committed Jul 24, 2024
1 parent 0c65d4d commit ef14723
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions app/controllers/registrations_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -186,8 +186,8 @@ def do_import
end
end
import_response = Microservices::Registrations.import_registrations(competition.id, { create: create_params, update: update_params, delete: delete_params })
unless import_response[:errors].nil?
raise import_response[:errors].join(', ')
if import_response["errors"].any?
raise import_response["errors"].join(', ')
end
else
ActiveRecord::Base.transaction do
Expand Down Expand Up @@ -225,7 +225,6 @@ def do_import
redirect_to competition_registrations_import_url(competition)
rescue StandardError => e
flash[:danger] = e.to_s
puts e.backtrace
redirect_to competition_registrations_import_url(competition)
end

Expand Down

0 comments on commit ef14723

Please sign in to comment.