Apply suggestion to lib/pleroma/web/media_proxy/invalidations/script.ex
authorMaksim <parallel588@gmail.com>
Wed, 17 Jun 2020 13:12:38 +0000 (13:12 +0000)
committerMaksim <parallel588@gmail.com>
Wed, 17 Jun 2020 13:12:38 +0000 (13:12 +0000)
lib/pleroma/web/media_proxy/invalidations/script.ex

index b0f44e8e2435e79cb02ab1ed9c7ba54d131d4755..d32ffc50b7fb4907a8bdcbcb511bd22181818119 100644 (file)
@@ -18,7 +18,7 @@ defmodule Pleroma.Web.MediaProxy.Invalidation.Script do
       |> Enum.join(" ")
 
     opts
-    |> Keyword.get(:script_path, nil)
+    |> Keyword.get(:script_path)
     |> do_purge([args])
     |> handle_result(urls)
   end