Browse Source

Remove :commit since a tuple is already returned

tags/v0.9.9
rinpatch 5 years ago
parent
commit
a2d7f0e0e9
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      lib/pleroma/web/rich_media/parser.ex

+ 1
- 1
lib/pleroma/web/rich_media/parser.ex 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


Loading…
Cancel
Save