Fix dialyzer warning for call to code:which/1

This commit is contained in:
Tuncer Ayaz 2010-09-29 23:31:50 +02:00
parent b8b112524b
commit 820012410a

View file

@ -284,7 +284,8 @@ has_header(Mod, Header) ->
cover_compiled -> cover_compiled ->
{file, File} = cover:is_compiled(Mod), {file, File} = cover:is_compiled(Mod),
File; File;
undefined -> Mod; non_existing -> Mod;
preloaded -> Mod;
L -> L L -> L
end, end,
{ok, {_, [{abstract_code, {_, AC}}]}} = beam_lib:chunks(Mod1, [abstract_code]), {ok, {_, [{abstract_code, {_, AC}}]}} = beam_lib:chunks(Mod1, [abstract_code]),