aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorIvan Tashkinov <ivantashkinov@gmail.com>2019-10-20 13:58:27 +0300
committerIvan Tashkinov <ivantashkinov@gmail.com>2019-10-20 13:58:27 +0300
commitb4cbf0568bd6924ded9b9fbdb588a4da92bf83e7 (patch)
tree94595fda394ff2f3b4b62183380fabbceee59189 /lib
parente8843974cb9b8adfe8798bb8f7ff17b7a92f5ab8 (diff)
downloadpleroma-b4cbf0568bd6924ded9b9fbdb588a4da92bf83e7.tar.gz
[#1304] Analysis issue fix.
Diffstat (limited to 'lib')
-rw-r--r--lib/pleroma/user.ex4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/pleroma/user.ex b/lib/pleroma/user.ex
index d16d22198..282cf6962 100644
--- a/lib/pleroma/user.ex
+++ b/lib/pleroma/user.ex
@@ -2014,11 +2014,11 @@ defmodule Pleroma.User do
end
end
- defp set_notification_mutes(user, _muted_notifications, _notifications? = false) do
+ defp set_notification_mutes(user, _muted_notifications, false = _notifications?) do
{:ok, user}
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}
user