25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-12-22 17:28:25 +01:00

Do not bind unused tail from 675cc3e

This commit is contained in:
Christophe Romain 2017-10-31 11:25:01 +01:00
parent 675cc3e0ea
commit 8cb71255eb

View File

@ -149,7 +149,7 @@ get_module_file(App, Mod) ->
filename:join([Dir, BaseName ++ ".beam"])
end.
module_name([Dir, _, <<H,T/binary>> | _] = Mod) when H >= 65, H =< 90 ->
module_name([Dir, _, <<H,_/binary>> | _] = Mod) when H >= 65, H =< 90 ->
Module = str:join([elixir_name(M) || M<-tl(Mod)], <<>>),
Prefix = case elixir_name(Dir) of
<<"Ejabberd">> -> <<"Elixir.Ejabberd.">>;