Commit 71d5cf9e authored by Rin Toshaka's avatar Rin Toshaka
Browse files

Remove unused vars from user.ex

parent 66313cda
...@@ -232,10 +232,6 @@ def run(["set", nickname | rest]) do ...@@ -232,10 +232,6 @@ def run(["set", nickname | rest]) do
end end
defp set_moderator(user, value) do defp set_moderator(user, value) do
info =
user.info
|> Map.put("is_moderator", value)
info_cng = User.Info.admin_api_update(user.info, %{is_moderator: value}) info_cng = User.Info.admin_api_update(user.info, %{is_moderator: value})
user_cng = user_cng =
...@@ -248,10 +244,6 @@ defp set_moderator(user, value) do ...@@ -248,10 +244,6 @@ defp set_moderator(user, value) do
end end
defp set_admin(user, value) do defp set_admin(user, value) do
info =
user.info
|> Map.put("is_admin", value)
info_cng = User.Info.admin_api_update(user.info, %{is_admin: value}) info_cng = User.Info.admin_api_update(user.info, %{is_admin: value})
user_cng = user_cng =
...@@ -264,10 +256,6 @@ defp set_admin(user, value) do ...@@ -264,10 +256,6 @@ defp set_admin(user, value) do
end end
defp set_locked(user, value) do defp set_locked(user, value) do
info =
user.info
|> Map.put("locked", value)
info_cng = User.Info.user_upgrade(user.info, %{locked: value}) info_cng = User.Info.user_upgrade(user.info, %{locked: value})
user_cng = user_cng =
......
Supports Markdown
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