Skip to content

Commit

Permalink
Fix matching of invalid_contract args.
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremyjh committed Sep 24, 2024
1 parent 4d76fe9 commit 98e366d
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 @@ -31,7 +31,7 @@ defmodule Dialyxir.Warnings.InvalidContract do

@impl Dialyxir.Warning
@spec format_long([String.t()]) :: String.t()
def format_long([module, function, arity, 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 98e366d

Please sign in to comment.