summaryrefslogtreecommitdiff
path: root/src
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
commitca654948abafc523917d4efecbb42a9b10805f0a (patch)
tree88cf8836b2065f0c6bb5db7189d653c71a7a77e9 /src
parent0546bc9a9c062ab244bebf3e0000720596e92ab5 (diff)
downloadrabbitmq-server-git-ca654948abafc523917d4efecbb42a9b10805f0a.tar.gz
remove evil
Diffstat (limited to 'src')
-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 b23088cc7a..cda1249266 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().