Fix(modules): correct the bad return value for emqx_modules:load/0
This commit is contained in:
parent
ee757402ad
commit
42fc81338c
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue