We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ab53867 commit b4ad1ffCopy full SHA for b4ad1ff
lib/elixir/lib/kernel.ex
@@ -1773,9 +1773,12 @@ defmodule Kernel do
1773
end
1774
1775
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]
+ case opts[:raw] do
+ nil ->
+ :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]
1782
1783
1784
opts = Inspect.Opts.new(opts)
0 commit comments