chore: make static_check happy
This commit is contained in:
parent
73c4838c77
commit
3038ded59e
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue