From: Dashie Date: Tue, 24 Apr 2018 12:12:23 +0000 (+0200) Subject: Correct syntax with mix format X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=afe892ddac566d05e45446127f276d84d431bbb2;p=akkoma Correct syntax with mix format --- diff --git a/lib/pleroma/user.ex b/lib/pleroma/user.ex index 0bc7dcab0..e9196ae03 100644 --- a/lib/pleroma/user.ex +++ b/lib/pleroma/user.ex @@ -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)