From 09fb1461b711b60c0e0019e3274f5c4aaa9abdb3 Mon Sep 17 00:00:00 2001 From: wwhai Date: Wed, 12 May 2021 22:13:26 +0800 Subject: [PATCH] fix(mgmt): fix diylazer warning for function return (#4786) --- apps/emqx_management/src/emqx_management.app.src | 2 +- apps/emqx_management/src/emqx_management.appup.src | 12 ++++++++++++ apps/emqx_management/src/emqx_mgmt_data_backup.erl | 2 +- 3 files changed, 14 insertions(+), 2 deletions(-) create mode 100644 apps/emqx_management/src/emqx_management.appup.src diff --git a/apps/emqx_management/src/emqx_management.app.src b/apps/emqx_management/src/emqx_management.app.src index b1e04c439..fe65052cf 100644 --- a/apps/emqx_management/src/emqx_management.app.src +++ b/apps/emqx_management/src/emqx_management.app.src @@ -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]}, diff --git a/apps/emqx_management/src/emqx_management.appup.src b/apps/emqx_management/src/emqx_management.appup.src new file mode 100644 index 000000000..5048e4f0f --- /dev/null +++ b/apps/emqx_management/src/emqx_management.appup.src @@ -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, []} + ]} + ] +}. \ No newline at end of file diff --git a/apps/emqx_management/src/emqx_mgmt_data_backup.erl b/apps/emqx_management/src/emqx_mgmt_data_backup.erl index c9df698ed..1eb6f8245 100644 --- a/apps/emqx_management/src/emqx_mgmt_data_backup.erl +++ b/apps/emqx_management/src/emqx_mgmt_data_backup.erl @@ -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.