diff options
author | Matthew Sackman <matthew@rabbitmq.com> | 2011-06-28 16:01:47 +0100 |
---|---|---|
committer | Matthew Sackman <matthew@rabbitmq.com> | 2011-06-28 16:01:47 +0100 |
commit | e7ec913d9c76db773b5a548e8dac3dbc35cbeb70 (patch) | |
tree | 70153e98ba2eb2d7dfd67b6f4eda93f31c849868 /src/rabbit.erl | |
parent | 65197bc696c4fee4ff11a05c1074284f0b0ea9e6 (diff) | |
download | rabbitmq-server-e7ec913d9c76db773b5a548e8dac3dbc35cbeb70.tar.gz |
Avoid pointless begin-end block. Duh.
Diffstat (limited to 'src/rabbit.erl')
-rw-r--r-- | src/rabbit.erl | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/src/rabbit.erl b/src/rabbit.erl index b523a26d..0d163944 100644 --- a/src/rabbit.erl +++ b/src/rabbit.erl @@ -393,15 +393,11 @@ config_files() -> application_load_order() -> {ok, G} = rabbit_misc:build_acyclic_graph( fun application_graph_vertex/2, fun application_graph_edge/2, - [{App, Deps} || - {App, _Desc, _Vsn} <- application:loaded_applications(), - begin - Deps = case application:get_key(App, applications) of - undefined -> []; - {ok, Lst} -> Lst - end, - true - end]), + [{App, case application:get_key(App, applications) of + undefined -> []; + {ok, Lst} -> Lst + end} || + {App, _Desc, _Vsn} <- application:loaded_applications()]), true = digraph:del_vertices( G, digraph:vertices(G) -- digraph_utils:reachable(?APPS, G)), Result = digraph_utils:topsort(G), |