1
0
mirror of https://git.pleroma.social/sjw/pleroma.git synced 2025-01-10 22:15:17 +01:00

Simplify the value comparison

This commit is contained in:
Mark Felder 2020-09-25 10:37:59 -05:00
parent 81faf540b3
commit 8b84ca4901

View File

@ -455,11 +455,7 @@ defmodule Mix.Tasks.Pleroma.User do
end
defp set_confirmed(user, value) do
{:ok, user} =
case value do
true -> User.need_confirmation(user, false)
false -> User.need_confirmation(user, true)
end
{:ok, user} = User.need_confirmation(user, !value)
shell_info("Confirmation pending status of #{user.nickname}: #{user.confirmation_pending}")
user