25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-12-22 17:28:25 +01:00

Tell dialyzer that gen_tags only cares about markdown output, not html

This commit is contained in:
Badlop 2021-08-23 15:39:01 +02:00
parent 655dcbcb74
commit 8b6c90c2d9

View File

@ -365,6 +365,7 @@ make_tags(HTMLOutput) ->
TagsList = ejabberd_commands:get_tags_commands(1000000),
lists:map(fun(T) -> gen_tags(T, HTMLOutput) end, TagsList).
-dialyzer({no_match, gen_tags/2}).
gen_tags({TagName, Commands}, HTMLOutput) ->
[?TAG(h1, TagName) | [?TAG(p, ?RAW("* *`"++C++"`*")) || C <- Commands]].