Remove redundant else clauses

Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
This commit is contained in:
marcin mikołajczak 2024-10-12 23:58:21 +02:00
parent d580f81f27
commit 3387373caf

View file

@ -168,8 +168,6 @@ def hashtags(%{assigns: %{account: user}} = conn, _params) do
%{name: hashtag.name, use_count: use_count}
end)
)
else
{:error, message} -> json_response(conn, :forbidden, %{error: message})
end
end
@ -183,8 +181,6 @@ def all_hashtags(conn, _params) do
%{name: hashtag.name, preferred_name: hashtag.preferred_name, use_count: use_count}
end)
)
else
{:error, message} -> json_response(conn, :forbidden, %{error: message})
end
end
end