Remove redundant else clauses
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
This commit is contained in:
parent
d580f81f27
commit
3387373caf
1 changed files with 0 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue