FC ParticulierController: remove one return

This commit is contained in:
simon lehericey 2018-01-15 13:20:47 +01:00 committed by Simon Lehericey
parent 34bd3a11e9
commit d086b82d44

View file

@ -22,10 +22,10 @@ class FranceConnect::ParticulierController < ApplicationController
salt = FranceConnectSaltService.new(france_connect_information).salt salt = FranceConnectSaltService.new(france_connect_information).salt
if user.nil? if user.nil?
return redirect_to france_connect_particulier_new_path(fci_id: france_connect_information.id, salt: salt) redirect_to france_connect_particulier_new_path(fci_id: france_connect_information.id, salt: salt)
end else
connect_france_connect_particulier(user) connect_france_connect_particulier(user)
end
rescue Rack::OAuth2::Client::Error => e rescue Rack::OAuth2::Client::Error => e
Rails.logger.error e.message Rails.logger.error e.message
redirect_france_connect_error_connection redirect_france_connect_error_connection