Skip to content

Commit 09a1621

Browse files
committed
Address code bootstrap
1 parent 20b4e64 commit 09a1621

File tree

1 file changed

+13
-11
lines changed

1 file changed

+13
-11
lines changed

lib/elixir/lib/macro.ex

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2592,19 +2592,21 @@ defmodule Macro do
25922592
end
25932593

25942594
prelude = quote do: options = unquote(Macro.escape(options))
2595+
acc = {prelude, dbg_format_header(env)}
25952596

2596-
dbg_ast_to_debuggable(code, env)
2597-
|> Enum.reduce({prelude, dbg_format_header(env)}, fn entry, {acc, header} ->
2598-
acc =
2599-
quote do
2600-
unquote(acc)
2601-
to_debug = unquote(entry)
2602-
unquote(__MODULE__).__dbg__(to_debug, unquote(header), options)
2603-
end
2597+
{acc, nil} =
2598+
Enum.reduce(dbg_ast_to_debuggable(code, env), acc, fn entry, {acc, header} ->
2599+
acc =
2600+
quote do
2601+
unquote(acc)
2602+
to_debug = unquote(entry)
2603+
unquote(__MODULE__).__dbg__(to_debug, unquote(header), options)
2604+
end
26042605

2605-
{acc, nil}
2606-
end)
2607-
|> elem(0)
2606+
{acc, nil}
2607+
end)
2608+
2609+
acc
26082610
end
26092611

26102612
# Pipelines.

0 commit comments

Comments
 (0)