aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorStavros Aronis <[email protected]>2011-11-24 23:30:01 +0100
committerHenrik Nord <[email protected]>2011-11-30 14:18:32 +0100
commitac61d229a27b0b07f08e25c4d18d214df89919e0 (patch)
tree10b5bcfe9d9c42a163da999237b19c043a467b7c /lib
parent18427c8e60494d34ea1d7b85fe4dd76b65736cc7 (diff)
downloadotp-ac61d229a27b0b07f08e25c4d18d214df89919e0.tar.gz
otp-ac61d229a27b0b07f08e25c4d18d214df89919e0.tar.bz2
otp-ac61d229a27b0b07f08e25c4d18d214df89919e0.zip
Fix Dialyzer's warning for its own code
Diffstat (limited to 'lib')
-rw-r--r--lib/dialyzer/src/dialyzer_cl.erl5
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/dialyzer/src/dialyzer_cl.erl b/lib/dialyzer/src/dialyzer_cl.erl
index e638e2fff2..41970f0efe 100644
--- a/lib/dialyzer/src/dialyzer_cl.erl
+++ b/lib/dialyzer/src/dialyzer_cl.erl
@@ -525,10 +525,7 @@ native_compile(Mods) ->
end.
hc(Mod) ->
- case code:ensure_loaded(Mod) of
- {module, Mod} -> ok;
- {error, sticky_directory} -> ok
- end,
+ {module, Mod} = code:ensure_loaded(Mod),
case code:is_module_native(Mod) of
true -> ok;
false ->