chore: make static_check happy

This commit is contained in:
JianBo He 2024-01-10 17:53:39 +08:00
parent 73c4838c77
commit 3038ded59e
1 changed files with 18 additions and 22 deletions

View File

@ -110,10 +110,7 @@ type_to_qos(coap, #coap_message{type = Type}) ->
end.
get_publish_opts(Msg) ->
case emqx_coap_message:extract_uri_query(Msg) of
undefined ->
#{};
Qs ->
Qs = emqx_coap_message:extract_uri_query(Msg),
maps:fold(
fun
(<<"retain">>, V, Acc) ->
@ -130,8 +127,7 @@ get_publish_opts(Msg) ->
end,
#{},
Qs
)
end.
).
get_publish_qos(Msg, PublishOpts) ->
case PublishOpts of