summaryrefslogtreecommitdiff
path: root/src/rabbit_control.erl
diff options
context:
space:
mode:
Diffstat (limited to 'src/rabbit_control.erl')
-rw-r--r--src/rabbit_control.erl4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rabbit_control.erl b/src/rabbit_control.erl
index e05b1886..ed1d384d 100644
--- a/src/rabbit_control.erl
+++ b/src/rabbit_control.erl
@@ -326,8 +326,8 @@ display_row(Row) ->
io:nl().
format_info_item(Key, Items) ->
- Info = {Key, Value} = proplists:lookup(Key, Items),
- case Info of
+ Value = proplists:get_value(Key, Items),
+ case {Key, Value} of
{_, #resource{name = Name}} ->
escape(Name);
_ when Key =:= address; Key =:= peer_address andalso is_tuple(Value) ->