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. end.
get_publish_opts(Msg) -> get_publish_opts(Msg) ->
case emqx_coap_message:extract_uri_query(Msg) of Qs = emqx_coap_message:extract_uri_query(Msg),
undefined ->
#{};
Qs ->
maps:fold( maps:fold(
fun fun
(<<"retain">>, V, Acc) -> (<<"retain">>, V, Acc) ->
@ -130,8 +127,7 @@ get_publish_opts(Msg) ->
end, end,
#{}, #{},
Qs Qs
) ).
end.
get_publish_qos(Msg, PublishOpts) -> get_publish_qos(Msg, PublishOpts) ->
case PublishOpts of case PublishOpts of