Skip to content
Snippets Groups Projects
Verified Commit afe892dd authored by dashie's avatar dashie
Browse files

Correct syntax with mix format

parent 9972678a
No related branches found
No related tags found
No related merge requests found
......@@ -323,7 +323,7 @@ def increase_note_count(%User{} = 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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment