Skip to content

Commit

Permalink
Backwards compatibility with OTP 25 & earlier.
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremyjh committed Sep 24, 2024
1 parent 98e366d commit 412e9df
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/dialyxir/warnings/invalid_contract.ex
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,11 @@ defmodule Dialyxir.Warnings.InvalidContract do

@impl Dialyxir.Warning
@spec format_long([String.t()]) :: String.t()
def format_long([module, function, arity, _args, signature | _]) do
def format_long([module, function, arity, signature]) do
format_long([module, function, arity, nil, signature])
end

def format_long([module, function, arity, _args, signature]) do
pretty_module = Erlex.pretty_print(module)
pretty_signature = Erlex.pretty_print_contract(signature)

Expand Down

0 comments on commit 412e9df

Please sign in to comment.