Simplify the value comparison
This commit is contained in:
parent
81faf540b3
commit
8b84ca4901
1 changed files with 1 additions and 5 deletions
|
@ -455,11 +455,7 @@ defmodule Mix.Tasks.Pleroma.User do
|
||||||
end
|
end
|
||||||
|
|
||||||
defp set_confirmed(user, value) do
|
defp set_confirmed(user, value) do
|
||||||
{:ok, user} =
|
{:ok, user} = User.need_confirmation(user, !value)
|
||||||
case value do
|
|
||||||
true -> User.need_confirmation(user, false)
|
|
||||||
false -> User.need_confirmation(user, true)
|
|
||||||
end
|
|
||||||
|
|
||||||
shell_info("Confirmation pending status of #{user.nickname}: #{user.confirmation_pending}")
|
shell_info("Confirmation pending status of #{user.nickname}: #{user.confirmation_pending}")
|
||||||
user
|
user
|
||||||
|
|
Loading…
Reference in a new issue