Skip to content

Commit d8faf5b

Browse files
committed
Fix bootstrapping
1 parent 9d03032 commit d8faf5b

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

lib/elixir/lib/kernel.ex

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3229,7 +3229,12 @@ defmodule Kernel do
32293229

32303230
# Error cases
32313231
defp do_at([{call, meta, ctx_or_args}, [{:do, _} | _] = kw], _meta, name, _function?, _env) do
3232-
args = if is_atom(ctx_or_args), do: [], else: ctx_or_args
3232+
args =
3233+
cond do
3234+
is_atom(ctx_or_args) -> []
3235+
true -> ctx_or_args
3236+
end
3237+
32333238
code = "\n@#{name} (#{Macro.to_string({call, meta, args ++ [kw]})})"
32343239

32353240
raise ArgumentError, """

0 commit comments

Comments
 (0)