commit: 82ba30c6582ea6f5bfb7f484b8cb2934ab59559e
parent cfc6355bbe85874ddee91a05557f4f0a4a106fe4
Author: Egor Kislitsyn <egor@kislitsyn.com>
Date: Sat, 23 Feb 2019 20:19:46 +0700
cleanup
Diffstat:
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/lib/auto_linker/builder.ex b/lib/auto_linker/builder.ex
@@ -59,7 +59,7 @@ defmodule AutoLinker.Builder do
|> truncate(Map.get(opts, :truncate, false))
attrs = format_attrs(attrs)
- "<a #{attrs}>" <> url <> "</a>"
+ "<a #{attrs}>#{url}</a>"
end
defp format_attrs(attrs) do
@@ -93,9 +93,7 @@ defmodule AutoLinker.Builder do
defp strip_prefix(url, _), do: url
- def create_phone_link([], buffer, _) do
- buffer
- end
+ def create_phone_link([], buffer, _), do: buffer
def create_phone_link([h | t], buffer, opts) do
create_phone_link(t, format_phone_link(h, buffer, opts), opts)