24
1
mirror of https://github.com/processone/ejabberd.git synced 2024-06-04 21:27:16 +02:00

Minor case code simplification.

SVN Revision: 2873
This commit is contained in:
Badlop 2010-01-09 18:39:17 +00:00
parent b431a9099e
commit 75ca3d8975

View File

@ -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,