mirror of
https://github.com/processone/ejabberd.git
synced 2024-12-22 17:28:25 +01:00
Get rid of a call to misc:have_eimp()
This commit is contained in:
parent
b970c88941
commit
d3aab2ea18
@ -851,8 +851,6 @@ code_to_message(_Code) -> <<"">>.
|
||||
-spec identify(binary(), binary()) -> {ok, media_info()} | pass.
|
||||
|
||||
identify(Path, Data) ->
|
||||
case misc:have_eimp() of
|
||||
true ->
|
||||
case eimp:identify(Data) of
|
||||
{ok, Info} ->
|
||||
{ok, #media_info{
|
||||
@ -863,9 +861,6 @@ identify(Path, Data) ->
|
||||
?DEBUG("Cannot identify type of ~s: ~s",
|
||||
[Path, eimp:format_error(Why)]),
|
||||
pass
|
||||
end;
|
||||
false ->
|
||||
pass
|
||||
end.
|
||||
|
||||
-spec convert(binary(), binary(), media_info()) -> {ok, binary(), media_info()} | pass.
|
||||
|
Loading…
Reference in New Issue
Block a user