Remove a return
This commit is contained in:
parent
89dec3d363
commit
46d02d3e2b
1 changed files with 3 additions and 3 deletions
|
@ -4,10 +4,10 @@ class Users::Dossiers::InvitesController < UsersController
|
|||
email = params[:email]
|
||||
|
||||
if email.present? && User.find_by(email: email).nil?
|
||||
return redirect_to new_user_registration_path(user: { email: email })
|
||||
redirect_to new_user_registration_path(user: { email: email })
|
||||
else
|
||||
super
|
||||
end
|
||||
|
||||
super
|
||||
end
|
||||
|
||||
def show
|
||||
|
|
Loading…
Reference in a new issue