Fix credo warning

This commit is contained in:
Roman Chvanikov 2020-01-19 22:09:47 +03:00
parent 0f1fc382d0
commit cde828ff7d

View file

@ -35,10 +35,11 @@ def perform(
^hrefs ^hrefs
) )
) )
# The query above can be time consumptive on large instances until we refactor how uploads are stored # The query above can be time consumptive on large instances until we
# refactor how uploads are stored
|> Repo.all(timout: :infinity) |> Repo.all(timout: :infinity)
# we should delete 1 object for any given attachment, but don't delete files if # we should delete 1 object for any given attachment, but don't delete
# there are more than 1 object for it # files if there are more than 1 object for it
|> Enum.reduce(%{}, fn %{ |> Enum.reduce(%{}, fn %{
id: id, id: id,
data: %{ data: %{