Commit 6ee98cec authored by rinpatch's avatar rinpatch

scrub: avoid reconstructing a tuple for no reason

parent 1cb0756a
Pipeline #19198 failed with stage
in 1 minute and 12 seconds
......@@ -42,9 +42,9 @@ defmodule FastSanitize.Sanitizer do
Enum.map(subtree, fn fragment ->
case scrubber.scrub(fragment) do
{tag, attrs, nil} ->
Logger.debug("Post-process closure: #{inspect({tag, attrs, nil})}")
{tag, attrs, nil}
{_tag, _attrs, nil} = fragment ->
Logger.debug("Post-process closure: #{inspect(fragment)}")
fragment
{tag, attrs, children} ->
Logger.debug("Post-process tag: #{inspect({tag, attrs, children})}")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment