Просмотр исходного кода

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

wwhai 4 лет назад
Родитель
Сommit
09fb1461b7

+ 1 - 1
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]},

+ 12 - 0
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, []}
+    ]}
+ ]
+}.

+ 1 - 1
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.