Remove misleading is_ prefix from boolean function
authorMark Felder <feld@FreeBSD.org>
Wed, 17 Jun 2020 18:02:01 +0000 (13:02 -0500)
committerMark Felder <feld@FreeBSD.org>
Wed, 17 Jun 2020 18:02:01 +0000 (13:02 -0500)
lib/pleroma/web/media_proxy/media_proxy.ex

index 59ca217abac98a3801777c99fdcea78e109fd399..3dccd6b7f02337409cdad85bbfd700b8df7a3730 100644 (file)
@@ -37,15 +37,15 @@ defmodule Pleroma.Web.MediaProxy do
   def url("/" <> _ = url), do: url
 
   def url(url) do
-    if disabled?() or not is_url_proxiable?(url) do
+    if disabled?() or not url_proxiable?(url) do
       url
     else
       encode_url(url)
     end
   end
 
-  @spec is_url_proxiable?(String.t()) :: boolean()
-  def is_url_proxiable?(url) do
+  @spec url_proxiable?(String.t()) :: boolean()
+  def url_proxiable?(url) do
     if local?(url) or whitelisted?(url) do
       false
     else