Verified Commit afe892dd authored by dashie's avatar dashie
Browse files

Correct syntax with mix format

parent 9972678a
......@@ -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)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment