1
0
Fork 0
mirror of https://github.com/processone/ejabberd synced 2025-10-05 19:42:11 +02:00

Fix dialyzer warnings for mod_mam

This commit is contained in:
Evgeniy Khramtsov 2016-09-13 16:56:34 +03:00
parent e987b88848
commit 151668ac10
3 changed files with 5 additions and 8 deletions

View file

@ -217,13 +217,10 @@ make_sql_query(User, LServer,
true ->
[]
end,
WithTextClause = case WithText of
{text, <<>>} ->
[];
{text, Txt} ->
WithTextClause = if is_binary(WithText), WithText /= <<>> ->
[<<" and match (txt) against ('">>,
Escape(Txt), <<"')">>];
undefined ->
Escape(WithText), <<"')">>];
true ->
[]
end,
WithClause = case catch jid:tolower(With) of