Fix(modules): correct the bad return value for emqx_modules:load/0

This commit is contained in:
JianBo He 2020-06-01 10:48:06 +08:00 committed by tigercl
parent ee757402ad
commit 42fc81338c
1 changed files with 2 additions and 2 deletions

View File

@ -39,7 +39,7 @@ list() ->
-spec(load() -> ok).
load() ->
case emqx:get_env(modules_loaded_file) of
undefined -> ignore;
undefined -> ok;
File ->
load_modules(File)
end.
@ -166,4 +166,4 @@ write_loaded(true) ->
?LOG(error, "Write File ~p Error: ~p", [FilePath, Error]),
{error, Error}
end;
write_loaded(false) -> ok.
write_loaded(false) -> ok.