Skip to content

Commit 490bcf2

Browse files
authored
Remove unreachable binary clause from to_iodata/4 (#4419)
Binaries are already intercepted inline by one_to_iodata/7 before delegating to to_iodata/4. Top-level diffs are always maps, making this clause dead.
1 parent 227b19b commit 490bcf2

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

lib/phoenix_live_view/diff.ex

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -78,10 +78,6 @@ defmodule Phoenix.LiveView.Diff do
7878
{mapper.(cid, iodata), components}
7979
end
8080

81-
defp to_iodata(binary, components, _template, _mapper) when is_binary(binary) do
82-
{binary, components}
83-
end
84-
8581
defp to_iodata_parts(parts, static, components, template, mapper) do
8682
[head | tail] = template_static(static, template)
8783
one_to_iodata(tail, parts, 0, [head], components, template, mapper)

0 commit comments

Comments
 (0)