From 3387373caf7f5453e3101f570dee3e32e2bb0fe9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?marcin=20miko=C5=82ajczak?= Date: Sat, 12 Oct 2024 23:58:21 +0200 Subject: [PATCH] Remove redundant else clauses MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: marcin mikołajczak --- lib/pleroma/web/pleroma_api/controllers/account_controller.ex | 4 ---- 1 file changed, 4 deletions(-) diff --git a/lib/pleroma/web/pleroma_api/controllers/account_controller.ex b/lib/pleroma/web/pleroma_api/controllers/account_controller.ex index 75319bf434..760a4e7c8a 100644 --- a/lib/pleroma/web/pleroma_api/controllers/account_controller.ex +++ b/lib/pleroma/web/pleroma_api/controllers/account_controller.ex @@ -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