with url when is_binary(url) <- opts[:url],
%URI{} = uri <- URI.parse(url),
%URI{} = uri when is_binary(uri.scheme) and is_binary(uri.host) and is_binary(uri.path) <-
uri do
:ok
else
_any -> {:error, :invalid_url}
end
end
with url when is_binary(url) <- opts[:url],
%URI{} = uri <- URI.parse(url),
%URI{} = uri when is_binary(uri.scheme) and is_binary(uri.host) and is_binary(uri.path) <-
uri do
:ok
else
_any -> {:error, :invalid_url}
end
end
Of course, the counter argument to this is the Maccas app, where the loading animation pisses you right off. Still, there's a little forgiveness in the anger
Of course, the counter argument to this is the Maccas app, where the loading animation pisses you right off. Still, there's a little forgiveness in the anger