From: Ivan Tashkinov <ivantashkinov@gmail.com>
Date: Sun, 20 Oct 2019 10:58:27 +0000 (+0300)
Subject: [#1304] Analysis issue fix.
X-Git-Url: http://git.squeep.com/?a=commitdiff_plain;h=b4cbf0568bd6924ded9b9fbdb588a4da92bf83e7;p=akkoma

[#1304] Analysis issue fix.
---

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