Pleroma.Web.AdminAPI.AdminAPIController: user_create statement format
authorHaelwenn (lanodan) Monnier <contact@hacktivis.me>
Fri, 2 Nov 2018 07:30:52 +0000 (08:30 +0100)
committerHaelwenn (lanodan) Monnier <contact@hacktivis.me>
Sat, 17 Nov 2018 19:25:55 +0000 (20:25 +0100)
lib/pleroma/web/admin_api/admin_api_controller.ex

index 17f5f320d8d23ecac111086087c979fc3a051d36..cb9839324f6d8126eb9bb66ffe5a3c5933492092 100644 (file)
@@ -20,10 +20,9 @@ defmodule Pleroma.Web.AdminAPI.AdminAPIController do
     |> json(nickname)
   end
 
-  def user_create(
-        conn,
-        %{user: %{"nickname" => nickname, "email" => email, "password" => password} = user}
-      ) do
+  def user_create(conn, %{
+        user: %{"nickname" => nickname, "email" => email, "password" => password} = user
+      }) do
     new_user = %User{
       nickname: nickname,
       name: user.name || nickname,