Skip to content

Commit

Permalink
remove useless conditions
Browse files Browse the repository at this point in the history
  • Loading branch information
jdenquin committed Feb 24, 2025
1 parent 9039833 commit 67b8fc7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/services/users_service.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ def login(email, password, method: :email)
end

if result.user
result.token = generate_token if result.user
result.user.touch_last_login!(method) if result.user
result.token = generate_token
result.user.touch_last_login!(method)
end

# NOTE: We're tracking the first membership linked to the user.
Expand Down

0 comments on commit 67b8fc7

Please sign in to comment.