24
1
mirror of https://github.com/processone/ejabberd.git synced 2024-06-28 22:52:27 +02:00

Minor case code simplification.

SVN Revision: 2873
This commit is contained in:
Badlop 2010-01-09 18:39:17 +00:00
parent 7b05ba0e1e
commit 8447dfa4b1

View File

@ -44,11 +44,11 @@ parse_request(#iq{type = set, lang = Lang, sub_el = SubEl, xmlns = ?NS_COMMANDS}
Action = xml:get_tag_attr_s("action", SubEl), Action = xml:get_tag_attr_s("action", SubEl),
XData = find_xdata_el(SubEl), XData = find_xdata_el(SubEl),
{xmlelement, _, _, AllEls} = SubEl, {xmlelement, _, _, AllEls} = SubEl,
case XData of Others = case XData of
false -> false ->
Others = AllEls; AllEls;
_ -> _ ->
Others = lists:delete(XData, AllEls) lists:delete(XData, AllEls)
end, end,
#adhoc_request{lang = Lang, #adhoc_request{lang = Lang,