Skip to content

Commit

Permalink
feat(account invitation): abstain from the conditional assignment
Browse files Browse the repository at this point in the history
  • Loading branch information
andreybakanovsky committed Aug 25, 2023
1 parent 6c0e14a commit 2fa289e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions app/controllers/users/sessions_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,8 @@ def new
private

def after_sign_in_path_for(_resource)
if (after_sign_in_url = session.delete(:after_sign_in_url)).present?
return after_sign_in_url
end
after_sign_in_url = session.delete(:after_sign_in_url)
return after_sign_in_url if after_sign_in_url.present?

super
end
Expand Down

0 comments on commit 2fa289e

Please sign in to comment.