24
1
mirror of https://github.com/processone/ejabberd.git synced 2024-06-16 22:05:29 +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),
XData = find_xdata_el(SubEl),
{xmlelement, _, _, AllEls} = 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,