[#1304] Analysis issue fix.

This commit is contained in:
Ivan Tashkinov 2019-10-20 13:58:27 +03:00
parent e8843974cb
commit b4cbf0568b
1 changed files with 2 additions and 2 deletions

View File

@ -2014,11 +2014,11 @@ def remove_from_mutes(user, muted) do
end end
end end
defp set_notification_mutes(user, _muted_notifications, _notifications? = false) do defp set_notification_mutes(user, _muted_notifications, false = _notifications?) do
{:ok, user} {:ok, user}
end end
defp set_notification_mutes(user, muted_notifications, _notifications? = true) do defp set_notification_mutes(user, muted_notifications, true = _notifications?) do
params = %{muted_notifications: muted_notifications} params = %{muted_notifications: muted_notifications}
user user