Skip to content

Commit 684f1bb

Browse files
committed
Refactor OTP-28 clause to delegate to existing implementation
1 parent bea2032 commit 684f1bb

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

lib/dialyxir/warnings/call_without_opaque.ex

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -53,17 +53,7 @@ defmodule Dialyxir.Warnings.CallWithoutOpaque do
5353

5454
# OTP 28+ format (5 arguments)
5555
def format_long([module, function, args, expected_triples, _additional_type_info]) do
56-
expected = form_expected_without_opaque(expected_triples)
57-
pretty_module = Erlex.pretty_print(module)
58-
pretty_args = Erlex.pretty_print_args(args)
59-
60-
"""
61-
Function call without opaqueness type mismatch.
62-
63-
Call does not have expected #{expected}.
64-
65-
#{pretty_module}.#{function}#{pretty_args}
66-
"""
56+
format_long([module, function, args, expected_triples])
6757
end
6858

6959
# We know which positions N are to blame;

0 commit comments

Comments
 (0)