Small optimization

This commit is contained in:
Mark Felder 2021-01-28 12:45:07 -06:00
parent fb88baabac
commit 1bc845f9e4

View file

@ -246,11 +246,9 @@ defmodule Linkify.Parser do
end
defp trim_leading_paren(buffer) do
if String.starts_with?(buffer, "(") do
"(" <> buffer = buffer
buffer
else
buffer
case buffer do
"(" <> buffer -> buffer
buffer -> buffer
end
end