summaryrefslogtreecommitdiff
path: root/src/rebar_prv_dialyzer.erl
diff options
context:
space:
mode:
Diffstat (limited to 'src/rebar_prv_dialyzer.erl')
-rw-r--r--src/rebar_prv_dialyzer.erl8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/rebar_prv_dialyzer.erl b/src/rebar_prv_dialyzer.erl
index 7cf7e28..487e9d1 100644
--- a/src/rebar_prv_dialyzer.erl
+++ b/src/rebar_prv_dialyzer.erl
@@ -402,14 +402,10 @@ run_dialyzer(State, Opts, Output) ->
end.
format_warnings(Output, Warnings) ->
- Warnings1 = format_warnings(Warnings),
+ Warnings1 = rebar_dialyzer_format:format_warnings(Warnings),
console_warnings(Warnings1),
file_warnings(Output, Warnings),
- length(Warnings1).
-
-format_warnings(Warnings) ->
- [rebar_dialyzer_format:format(Warning) || Warning <- Warnings].
-
+ length(Warnings).
console_warnings(Warnings) ->
_ = [?CONSOLE("~s", [Warning]) || Warning <- Warnings],