From: William Pitcock Date: Sat, 1 Dec 2018 22:17:28 +0000 (+0000) Subject: compact database task: fix formatting X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=1a360a4eaa57d57ccc4f03dfa25e82a240d0175a;p=akkoma compact database task: fix formatting --- diff --git a/lib/mix/tasks/compact_database.ex b/lib/mix/tasks/compact_database.ex index b84b340ac..7de50812a 100644 --- a/lib/mix/tasks/compact_database.ex +++ b/lib/mix/tasks/compact_database.ex @@ -39,9 +39,9 @@ defmodule Mix.Tasks.CompactDatabase do max = Repo.aggregate(Activity, :max, :id) Logger.info("Considering #{max} activities") - chunks = 0..(round(max / 100)) + chunks = 0..round(max / 100) - Enum.each(chunks, fn (i) -> + Enum.each(chunks, fn i -> min = i * 100 max = min + 100