fix(dialyzer): Omit `value is unmatched` warning

This commit is contained in:
k32 2021-05-06 15:59:42 +02:00 committed by turtleDeng
parent c81cd8550d
commit 7cd31028cb
1 changed files with 5 additions and 4 deletions

View File

@ -505,7 +505,8 @@ do_import_acl_mnesia(Acls) ->
-ifdef(EMQX_ENTERPRISE).
import_modules(Modules) ->
case ets:info(emqx_modules) of
undefined -> [];
undefined ->
ok;
_ ->
lists:foreach(fun(#{<<"id">> := Id,
<<"type">> := Type,
@ -649,9 +650,9 @@ do_import_data(Data, Version) ->
-ifdef(EMQX_ENTERPRISE).
do_import_extra_data(Data, _Version) ->
import_confs(maps:get(<<"configs">>, Data, []), maps:get(<<"listeners_state">>, Data, [])),
import_modules(maps:get(<<"modules">>, Data, [])),
import_schemas(maps:get(<<"schemas">>, Data, [])),
_ = import_confs(maps:get(<<"configs">>, Data, []), maps:get(<<"listeners_state">>, Data, [])),
_ = import_modules(maps:get(<<"modules">>, Data, [])),
_ = import_schemas(maps:get(<<"schemas">>, Data, [])),
ok.
-else.
do_import_extra_data(_Data, _Version) -> ok.