Fix credo

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel
2018-07-04 17:16:02 +02:00
parent 615e91a05b
commit b60e8b7647
6 changed files with 18 additions and 7 deletions

View File

@@ -312,7 +312,7 @@ defmodule Eventos.Actors do
Get an user by email
"""
def find_by_email(email) do
case Repo.get_by(User, email: email) |> Repo.preload(:actor) do
case Repo.preload(Repo.get_by(User, email: email), :actor) do
nil ->
{:error, nil}
user ->