compact database task: fix formatting
authorWilliam Pitcock <nenolod@dereferenced.org>
Sat, 1 Dec 2018 22:17:28 +0000 (22:17 +0000)
committerWilliam Pitcock <nenolod@dereferenced.org>
Tue, 4 Dec 2018 04:52:09 +0000 (04:52 +0000)
lib/mix/tasks/compact_database.ex

index b84b340acea8f4d8043182abc06cd328407692c1..7de50812a5709bd134a786ef17eb1c06b276e9ae 100644 (file)
@@ -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