Fix warnings

This commit is contained in:
Logan Hunt 2022-04-06 12:38:50 -06:00
parent 2055742911
commit 66d871e546
Signed by untrusted user who does not match committer: simponic
GPG Key ID: 52B3774857EB24B1

View File

@ -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