rebar_deps: fix Dialyzer warning

Project: http://git-wip-us.apache.org/repos/asf/couchdb-rebar/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb-rebar/commit/6518b5f5
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-rebar/tree/6518b5f5
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-rebar/diff/6518b5f5

Branch: refs/heads/import
Commit: 6518b5f541905f566ae37a00318a2cad4b75aa2c
Parents: 348d13b
Author: Tuncer Ayaz <[email protected]>
Authored: Wed Oct 16 12:36:32 2013 +0200
Committer: Tuncer Ayaz <[email protected]>
Committed: Wed Oct 16 12:36:32 2013 +0200

----------------------------------------------------------------------
 src/rebar_deps.erl | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-rebar/blob/6518b5f5/src/rebar_deps.erl
----------------------------------------------------------------------
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

Reply via email to