1
0
mirror of https://git.pleroma.social/sjw/pleroma.git synced 2024-11-17 00:26:19 +01:00

Remove :commit since a tuple is already returned

This commit is contained in:
rinpatch 2019-01-09 21:35:01 +03:00
parent 5c5c8508c2
commit a2d7f0e0e9

View File

@ -5,7 +5,7 @@ defmodule Pleroma.Web.RichMedia.Parser do
def parse(url), do: parse_url(url)
else
def parse(url),
do: {:commit, Cachex.fetch!(:rich_media_cache, url, fn _ -> parse_url(url) end)}
do: Cachex.fetch!(:rich_media_cache, url, fn _ -> parse_url(url) end)
end
defp parse_url(url) do