summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTuncer Ayaz <tuncer.ayaz@gmail.com>2013-10-16 12:36:32 +0200
committerTuncer Ayaz <tuncer.ayaz@gmail.com>2013-10-16 12:36:32 +0200
commit6518b5f541905f566ae37a00318a2cad4b75aa2c (patch)
tree8fbc1ec004c8c2fa8db2a23b01865786b2d3da49 /src
parent348d13b064723f790aa0d96f99eb87c58776619a (diff)
rebar_deps: fix Dialyzer warning
Diffstat (limited to 'src')
-rw-r--r--src/rebar_deps.erl18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/rebar_deps.erl b/src/rebar_deps.erl
index b57ce5d..22ffa4f 100644
--- a/src/rebar_deps.erl
+++ b/src/rebar_deps.erl
@@ -187,15 +187,15 @@ do_check_deps(Config) ->
DepOwners = rebar_config:get(Config2, depowner, dict:new()),
%% check for conflicting deps
- [?ERROR("Conflicting dependencies for ~p: ~p~n", [K,
- [{"From: " ++ string:join(dict:fetch(D,
- DepOwners),
- ", "),
- {D#dep.vsn_regex,
- D#dep.source}} || D <- V]]) ||
- {K, V} <- dict:to_list(lists:foldl(fun(Dep, Acc) ->
- dict:append(Dep#dep.app, Dep, Acc)
- end, dict:new(), UpdatedDeps)), length(V) > 1],
+ _ = [?ERROR("Conflicting dependencies for ~p: ~p~n",
+ [K, [{"From: " ++ string:join(dict:fetch(D, DepOwners), ", "),
+ {D#dep.vsn_regex, D#dep.source}} || D <- V]])
+ || {K, V} <- dict:to_list(
+ lists:foldl(
+ fun(Dep, Acc) ->
+ dict:append(Dep#dep.app, Dep, Acc)
+ end, dict:new(), UpdatedDeps)),
+ length(V) > 1],
%% Add each updated dep to our list of dirs for post-processing. This yields
%% the necessary transitivity of the deps