mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-24 16:23:40 +01:00
Attempt to fix dialyzer warning: adhoc.erl:51: Guard test XData::'false' | #xmlel{ns::'jabber❌data',declared_ns::[{_,_}],attrs::[{_,_,_,_}],children::'undefined' | [{_,_} | {_,_,_,_,_,_}]} =:= 'true' can never succeed
SVN Revision: 2869
This commit is contained in:
parent
b1ad7ad0ba
commit
a0554183c5
@ -48,10 +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),
|
||||||
if XData ->
|
case XData of
|
||||||
Others = lists:delete(XData, AllEls);
|
false ->
|
||||||
true ->
|
Others = AllEls;
|
||||||
Others = AllEls
|
_ ->
|
||||||
|
Others = lists:delete(XData, AllEls)
|
||||||
end,
|
end,
|
||||||
|
|
||||||
#adhoc_request{lang = Lang,
|
#adhoc_request{lang = Lang,
|
||||||
|
Loading…
Reference in New Issue
Block a user