Skip to content

Commit 03d0ad3

Browse files
author
José Valim
committed
No longer inline binary expressions in EEx
String.Chars is now always inlined by the compiler. Closes #2815 Signed-off-by: José Valim <jose.valim@plataformatec.com.br>
1 parent a87f437 commit 03d0ad3

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

lib/eex/lib/eex/engine.ex

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -99,10 +99,7 @@ defmodule EEx.Engine do
9999
def handle_expr(buffer, "=", expr) do
100100
quote do
101101
tmp = unquote(buffer)
102-
tmp <> (case unquote(expr) do
103-
bin when is_binary(bin) -> bin
104-
oth -> String.Chars.to_string(oth)
105-
end)
102+
tmp <> String.Chars.to_string(unquote(expr))
106103
end
107104
end
108105

0 commit comments

Comments
 (0)