Skip to content

Commit

Permalink
Yes, also an extra trailing arg.
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremyjh committed Sep 24, 2024
1 parent 412e9df commit 75da762
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/dialyxir/warnings/invalid_contract.ex
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ defmodule Dialyxir.Warnings.InvalidContract do
format_long([module, function, arity, nil, signature])
end

def format_long([module, function, arity, _args, signature]) do
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 75da762

Please sign in to comment.