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
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user