diff options
author | Tuncer Ayaz <tuncer.ayaz@gmail.com> | 2010-09-29 23:31:50 +0200 |
---|---|---|
committer | Tuncer Ayaz <tuncer.ayaz@gmail.com> | 2010-09-29 23:31:50 +0200 |
commit | 820012410addc6128d964d083dcd9b972a5c76f4 (patch) | |
tree | 4f10852598c459a9a0a893977456039f8013c07f | |
parent | b8b112524b287dfbf1b948fb2d376b3a8931f44b (diff) |
Fix dialyzer warning for call to code:which/1
-rw-r--r-- | src/rebar_eunit.erl | 3 |
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]), |