Remove :commit since a tuple is already returned
authorrinpatch <rinpatch@sdf.org>
Wed, 9 Jan 2019 18:35:01 +0000 (21:35 +0300)
committerrinpatch <rinpatch@sdf.org>
Wed, 9 Jan 2019 18:35:01 +0000 (21:35 +0300)
lib/pleroma/web/rich_media/parser.ex

index 3746feaf688b275b8a70cc5bb15ac91a40191b58..18d9e2df5cdb56f28c8cd31ef788c9a3ae5518fe 100644 (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