Merge pull request #8855 from thalesmg/fix-dialyzer-v44-a

chore: fix dialyzer errors (v4.4)
This commit is contained in:
Thales Macedo Garitezi 2022-09-01 15:04:29 -03:00 committed by GitHub
commit 1ba606f57a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 8 deletions

View File

@ -56,12 +56,7 @@ jobs:
- name: make xref
run: make xref
- name: make dialyzer
run: |
# TODO: once dialyzer warnings are fixed in 4.4+, we may
# enforce this.
if [[ "$(./pkg-vsn.sh)" =~ 4.3.* ]]; then
make dialyzer
fi
run: make dialyzer
- name: build zip packages
run: make ${EMQX_NAME}-zip
- name: build deb/rpm packages

View File

@ -121,8 +121,8 @@ loop_publish([Params | ParamsN], Acc) ->
try parse_publish_params(Params) of
Res ->
Code = case do_publish(Params, Res) of
{ok, _} -> 0;
{_, Code0, _} -> Code0
{ok, #{code := ?SUCCESS}} -> 0;
{ok, #{code := Code0}} -> Code0
end,
#{topic => resp_topic(proplists:get_value(<<"topic">>, Params),
proplists:get_value(<<"topics">>, Params, <<"">>)),