mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-24 16:23:40 +01:00
Minor case code simplification.
SVN Revision: 2873
This commit is contained in:
parent
b431a9099e
commit
75ca3d8975
@ -48,11 +48,11 @@ parse_request(#iq{type = Type, ns = NS, payload = SubEl, lang = Lang}) ->
|
|||||||
Action = exmpp_xml:get_attribute_as_list(SubEl, 'action', ""),
|
Action = exmpp_xml:get_attribute_as_list(SubEl, 'action', ""),
|
||||||
XData = find_xdata_el(SubEl),
|
XData = find_xdata_el(SubEl),
|
||||||
AllEls = exmpp_xml:get_child_elements(SubEl),
|
AllEls = exmpp_xml:get_child_elements(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,
|
||||||
|
Loading…
Reference in New Issue
Block a user