mirror of
https://github.com/processone/ejabberd.git
synced 2024-06-02 21:17:12 +02:00
prosody2ejabberd: Remove superfluous 'catch'
This commit is contained in:
parent
a96d72330d
commit
fc7ba53c37
|
@ -422,7 +422,7 @@ convert_node_items(Host, Data) ->
|
||||||
Authors = proplists:get_value(<<"data_author">>, Data, []),
|
Authors = proplists:get_value(<<"data_author">>, Data, []),
|
||||||
lists:flatmap(
|
lists:flatmap(
|
||||||
fun({ItemId, Item}) ->
|
fun({ItemId, Item}) ->
|
||||||
try catch jid:decode(proplists:get_value(ItemId, Authors, Host)) of
|
try jid:decode(proplists:get_value(ItemId, Authors, Host)) of
|
||||||
JID ->
|
JID ->
|
||||||
[El] = deserialize(Item),
|
[El] = deserialize(Item),
|
||||||
[{ItemId, JID, El#xmlel.children}]
|
[{ItemId, JID, El#xmlel.children}]
|
||||||
|
|
Loading…
Reference in New Issue
Block a user