Swap map with each
authorMaxim Filippov <colixer@gmail.com>
Fri, 22 Nov 2019 00:11:36 +0000 (09:11 +0900)
committerMaxim Filippov <colixer@gmail.com>
Fri, 22 Nov 2019 00:11:36 +0000 (09:11 +0900)
lib/pleroma/user.ex

index f031d217992cf71ee2fdf2b91efd197eadd2eec6..f1830509c8783f902a2b2aac01e3efe0ec300f10 100644 (file)
@@ -490,7 +490,7 @@ defmodule Pleroma.User do
   end
 
   def try_send_confirmation_email(users) do
-    Enum.map(users, &try_send_confirmation_email/1)
+    Enum.each(users, &try_send_confirmation_email/1)
   end
 
   def needs_update?(%User{local: true}), do: false