Elixir 1.17 warnings for parens

Function calls must have parens
This commit is contained in:
Mark Felder 2024-06-27 11:37:44 -04:00
commit d3cccce9fd
5 changed files with 5 additions and 5 deletions

View file

@ -163,7 +163,7 @@ defmodule Pleroma.Web do
"""
def safe_render_many(collection, view, template, assigns \\ %{}) do
Enum.map(collection, fn resource ->
as = Map.get(assigns, :as) || view.__resource__
as = Map.get(assigns, :as) || view.__resource__()
assigns = Map.put(assigns, as, resource)
safe_render(view, template, assigns)
end)