Fix warnings
This commit is contained in:
parent
2055742911
commit
66d871e546
@ -8,7 +8,6 @@ defmodule Aggiedit.Accounts do
|
||||
|
||||
alias Aggiedit.Accounts.{User, UserToken, UserNotifier}
|
||||
alias Aggiedit.Rooms
|
||||
alias Aggiedit.Rooms.Room
|
||||
|
||||
## Database getters
|
||||
|
||||
@ -142,7 +141,7 @@ defmodule Aggiedit.Accounts do
|
||||
with {:ok, query} <- UserToken.verify_change_email_token_query(token, context),
|
||||
%UserToken{sent_to: email} <- Repo.one(query),
|
||||
{:ok, _} <- Repo.transaction(user_email_multi(user, email, context)),
|
||||
{:ok, user} <- set_user_room(user) do
|
||||
{:ok, _user} <- set_user_room(user) do
|
||||
:ok
|
||||
else
|
||||
_ -> :error
|
||||
|
Loading…
Reference in New Issue
Block a user