Fix compilation warning

This commit is contained in:
Gilbert Wong 2019-04-03 20:49:45 +08:00
parent 15f8d3208f
commit 287c5582a9
1 changed files with 3 additions and 4 deletions

View File

@ -277,9 +277,9 @@ plugin_unloaded(_Name, false) ->
plugin_unloaded(Name, true) -> plugin_unloaded(Name, true) ->
case read_loaded() of case read_loaded() of
{ok, Names0} -> {ok, Names0} ->
Names = lists:filtermap(fun(Name) when is_atom(Name) -> {true, Name}; Names = lists:filtermap(fun(Name1) when is_atom(Name1) -> {true, Name1};
({Name, true}) -> {true, Name}; ({Name1, true}) -> {true, Name1};
({Name, false}) -> false ({_Name1, false}) -> false
end, Names0), end, Names0),
case lists:member(Name, Names) of case lists:member(Name, Names) of
true -> true ->
@ -310,4 +310,3 @@ write_loaded(AppNames) ->
?LOG(error, "[Plugins] Open File ~p Error: ~p", [File, Error]), ?LOG(error, "[Plugins] Open File ~p Error: ~p", [File, Error]),
{error, Error} {error, Error}
end. end.