Verified Commit 1e6c102b authored by Haelwenn's avatar Haelwenn

Web.AdminAPI.AdminAPIController: Remove a useless if in user_delete

parent 33e3a7ba
Pipeline #5908 passed with stages
in 5 minutes and 53 seconds
......@@ -14,13 +14,8 @@ defmodule Pleroma.Web.AdminAPI.AdminAPIController do
action_fallback(:errors)
def user_delete(conn, %{"nickname" => nickname}) do
user = User.get_by_nickname(nickname)
if user.local == true do
User.delete(user)
else
User.delete(user)
end
User.get_by_nickname(nickname)
|> User.delete()
conn
|> json(nickname)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment