fix(mgmt): fix diylazer warning for function return (#4786)

This commit is contained in:
wwhai 2021-05-12 22:13:26 +08:00 committed by GitHub
parent 0bf76adfd5
commit 09fb1461b7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 14 additions and 2 deletions

View File

@ -1,6 +1,6 @@
{application, emqx_management,
[{description, "EMQ X Management API and CLI"},
{vsn, "4.3.0"}, % strict semver, bump manually!
{vsn, "4.3.1"}, % strict semver, bump manually!
{modules, []},
{registered, [emqx_management_sup]},
{applications, [kernel,stdlib,minirest]},

View File

@ -0,0 +1,12 @@
%% -*-: erlang -*-
{"4.3.1",
[ {"4.3.0",
[ {load_module, emqx_mgmt_data_backup, brutal_purge, soft_purge, []}
]}
],
[
{"4.3.0",
[ {load_module, emqx_mgmt_data_backup, brutal_purge, soft_purge, []}
]}
]
}.

View File

@ -514,7 +514,7 @@ import_modules(Modules) ->
<<"enabled">> := Enabled,
<<"created_at">> := CreatedAt,
<<"description">> := Description}) ->
emqx_modules:import_module({Id, any_to_atom(Type), Config, Enabled, CreatedAt, Description})
_ = emqx_modules:import_module({Id, any_to_atom(Type), Config, Enabled, CreatedAt, Description})
end, Modules)
end.