Sanitize copy-pasted get_statustag/1

This commit is contained in:
Radosław Szymczyszyn 2014-05-20 12:27:16 +01:00
parent 9c37450fe4
commit b7a542e074
1 changed files with 1 additions and 5 deletions

View File

@ -2358,11 +2358,7 @@ get_showtag(Presence) ->
get_statustag(undefined) -> <<"">>;
get_statustag(Presence) ->
case xml:get_path_s(Presence,
[{elem, <<"status">>}, cdata])
of
ShowTag -> ShowTag
end.
xml:get_path_s(Presence, [{elem, <<"status">>}, cdata]).
process_unauthenticated_stanza(StateData, El) ->
NewEl = case xml:get_tag_attr_s(<<"xml:lang">>, El) of