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.
|
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
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue