Correct syntax with mix format
authorDashie <dashie@sigpipe.me>
Tue, 24 Apr 2018 12:12:23 +0000 (14:12 +0200)
committerDashie <dashie@sigpipe.me>
Tue, 24 Apr 2018 12:12:23 +0000 (14:12 +0200)
lib/pleroma/user.ex

index 0bc7dcab0aaebed7c9e59a80a76826ffb485552a..e9196ae0391b8b254008d1414b567e2da2265c38 100644 (file)
@@ -323,7 +323,7 @@ defmodule Pleroma.User do
   end
 
   def decrease_note_count(%User{} = user) do
-    note_count = (user.info["note_count"] || 0)
+    note_count = user.info["note_count"] || 0
     note_count = if note_count <= 0, do: 0, else: note_count - 1
     new_info = Map.put(user.info, "note_count", note_count)