FC ParticulierController: remove one return
This commit is contained in:
parent
34bd3a11e9
commit
d086b82d44
1 changed files with 3 additions and 3 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue