Small optimization
This commit is contained in:
parent
fb88baabac
commit
1bc845f9e4
1 changed files with 3 additions and 5 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue