[#114] mix format

This commit is contained in:
Ivan Tashkinov 2018-12-19 19:03:39 +03:00
parent 279096228c
commit b520d44b58

View File

@ -100,7 +100,9 @@ def show_user(conn, params) do
for_user = conn.assigns.user for_user = conn.assigns.user
with {:ok, shown} <- TwitterAPI.get_user(params), with {:ok, shown} <- TwitterAPI.get_user(params),
true <- User.auth_active?(shown) || for_user && (for_user.id == shown.id || User.superuser?(for_user)) do true <-
User.auth_active?(shown) ||
(for_user && (for_user.id == shown.id || User.superuser?(for_user))) do
params = params =
if for_user do if for_user do
%{user: shown, for: for_user} %{user: shown, for: for_user}