[#1304] Analysis issue fix.
authorIvan Tashkinov <ivantashkinov@gmail.com>
Sun, 20 Oct 2019 10:58:27 +0000 (13:58 +0300)
committerIvan Tashkinov <ivantashkinov@gmail.com>
Sun, 20 Oct 2019 10:58:27 +0000 (13:58 +0300)
lib/pleroma/user.ex

index d16d221985905e5fa56e1fd519127d83b6bc424e..282cf69622e9ea943a589713bd81a1dd1ed28a53 100644 (file)
@@ -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