Skip to content

Commit

Permalink
Fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
wojtekmach committed Nov 21, 2023
1 parent a7a1ef1 commit d3fbf9e
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions lib/ex_doc/utils.ex
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@ defmodule ExDoc.Utils do
@doc """
Emits a warning.
"""
def warn(message, stacktrace_info) do
if unquote(Version.match?(System.version(), ">= 1.14.0")) do
stacktrace_info
else
[]
if Version.match?(System.version(), ">= 1.14.0") do
def warn(message, stacktrace_info) do
IO.warn(message, stacktrace_info)
end
else
def warn(message, _stacktrace_info) do
IO.warn(message, [])
end

IO.warn(message, stacktrace_info)
end

@doc """
Expand Down

0 comments on commit d3fbf9e

Please sign in to comment.