From 75ca3d8975d4416165e5780405932b1a2d261d8c Mon Sep 17 00:00:00 2001 From: Badlop Date: Sat, 9 Jan 2010 18:39:17 +0000 Subject: [PATCH] Minor case code simplification. SVN Revision: 2873 --- src/adhoc.erl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/adhoc.erl b/src/adhoc.erl index bf8abf105..444209947 100644 --- a/src/adhoc.erl +++ b/src/adhoc.erl @@ -48,11 +48,11 @@ parse_request(#iq{type = Type, ns = NS, payload = SubEl, lang = Lang}) -> Action = exmpp_xml:get_attribute_as_list(SubEl, 'action', ""), XData = find_xdata_el(SubEl), AllEls = exmpp_xml:get_child_elements(SubEl), - case XData of + Others = case XData of false -> - Others = AllEls; + AllEls; _ -> - Others = lists:delete(XData, AllEls) + lists:delete(XData, AllEls) end, #adhoc_request{lang = Lang,