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

@@ -90,7 +90,9 @@ defmodule EventosWeb.UserController do
end
def show_current_actor(conn, _params) do
user = Guardian.Plug.current_resource(conn) |> Repo.preload(:actor)
user = conn
|> Guardian.Plug.current_resource()
|> Repo.preload(:actor)
render(conn, "show_simple.json", user: user)
end