Remove misleading is_ prefix from boolean function
This commit is contained in:
parent
71a5d9bffb
commit
c08c9db0c1
|
@ -37,15 +37,15 @@ def url(url) when is_nil(url) or url == "", do: nil
|
||||||
def url("/" <> _ = url), do: url
|
def url("/" <> _ = url), do: url
|
||||||
|
|
||||||
def url(url) do
|
def url(url) do
|
||||||
if disabled?() or not is_url_proxiable?(url) do
|
if disabled?() or not url_proxiable?(url) do
|
||||||
url
|
url
|
||||||
else
|
else
|
||||||
encode_url(url)
|
encode_url(url)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
@spec is_url_proxiable?(String.t()) :: boolean()
|
@spec url_proxiable?(String.t()) :: boolean()
|
||||||
def is_url_proxiable?(url) do
|
def url_proxiable?(url) do
|
||||||
if local?(url) or whitelisted?(url) do
|
if local?(url) or whitelisted?(url) do
|
||||||
false
|
false
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue