summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTuncer Ayaz <tuncer.ayaz@gmail.com>2010-09-29 23:31:50 +0200
committerTuncer Ayaz <tuncer.ayaz@gmail.com>2010-09-29 23:31:50 +0200
commit820012410addc6128d964d083dcd9b972a5c76f4 (patch)
tree4f10852598c459a9a0a893977456039f8013c07f /src
parentb8b112524b287dfbf1b948fb2d376b3a8931f44b (diff)
Fix dialyzer warning for call to code:which/1
Diffstat (limited to 'src')
-rw-r--r--src/rebar_eunit.erl3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/rebar_eunit.erl b/src/rebar_eunit.erl
index 67559ca..2dd02a7 100644
--- a/src/rebar_eunit.erl
+++ b/src/rebar_eunit.erl
@@ -284,7 +284,8 @@ has_header(Mod, Header) ->
cover_compiled ->
{file, File} = cover:is_compiled(Mod),
File;
- undefined -> Mod;
+ non_existing -> Mod;
+ preloaded -> Mod;
L -> L
end,
{ok, {_, [{abstract_code, {_, AC}}]}} = beam_lib:chunks(Mod1, [abstract_code]),