Skip to content

Commit b4ad1ff

Browse files
committed
Fix bootstrapping issue in previous commit
1 parent ab53867 commit b4ad1ff

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

lib/elixir/lib/kernel.ex

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1773,9 +1773,12 @@ defmodule Kernel do
17731773
end
17741774

17751775
def inspect(arg, opts) when is_list(opts) do
1776-
unless nil?(raw = opts[:raw]) do
1777-
IO.write "Kernel.inspect/2 with :raw option is deprecated, please use :records instead\n#{Exception.format_stacktrace}"
1778-
opts = opts ++ [records: !raw]
1776+
case opts[:raw] do
1777+
nil ->
1778+
:ok
1779+
raw ->
1780+
IO.write "Kernel.inspect/2 with :raw option is deprecated, please use :records instead\n#{Exception.format_stacktrace}"
1781+
opts = opts ++ [records: not raw]
17791782
end
17801783

17811784
opts = Inspect.Opts.new(opts)

0 commit comments

Comments
 (0)