summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Radestock <matthias@rabbitmq.com>2012-07-20 16:45:15 +0100
committerMatthias Radestock <matthias@rabbitmq.com>2012-07-20 16:45:15 +0100
commit3602c4a843b89f24c520a3f3d9d48e019c1d7c2d (patch)
tree88cf8836b2065f0c6bb5db7189d653c71a7a77e9
parent5151a2fecf7bf517d0e54e052dbf489f57894603 (diff)
downloadrabbitmq-server-3602c4a843b89f24c520a3f3d9d48e019c1d7c2d.tar.gz
remove evil
-rw-r--r--src/rabbit_control_main.erl10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/rabbit_control_main.erl b/src/rabbit_control_main.erl
index b23088cc..cda12492 100644
--- a/src/rabbit_control_main.erl
+++ b/src/rabbit_control_main.erl
@@ -190,11 +190,11 @@ print_report(Node, {Descr, Module, InfoFun, KeysFun}, VHostArg) ->
print_report0(Node, {Module, InfoFun, KeysFun}, VHostArg).
print_report0(Node, {Module, InfoFun, KeysFun}, VHostArg) ->
- case Results = rpc_call(Node, Module, InfoFun, VHostArg) of
- [_|_] -> InfoItems = rpc_call(Node, Module, KeysFun, []),
- display_row([atom_to_list(I) || I <- InfoItems]),
- display_info_list(Results, InfoItems);
- _ -> ok
+ case rpc_call(Node, Module, InfoFun, VHostArg) of
+ [_|_] = Results -> InfoItems = rpc_call(Node, Module, KeysFun, []),
+ display_row([atom_to_list(I) || I <- InfoItems]),
+ display_info_list(Results, InfoItems);
+ _ -> ok
end,
io:nl().