summaryrefslogtreecommitdiff
path: root/src/rebar_otp_app.erl
diff options
context:
space:
mode:
authorKostis Sagonas <kostis@cs.ntua.gr>2010-10-10 14:11:13 -0600
committerKostis Sagonas <kostis@cs.ntua.gr>2010-10-10 14:11:13 -0600
commite024778599c71559f97003014ae8457a19e01256 (patch)
treeb041ad5aa571c862e0669e83cdf451606db08e3c /src/rebar_otp_app.erl
parent93f77b50fc89690848a902428b38bcf5e21bfd7e (diff)
downloadrebar-e024778599c71559f97003014ae8457a19e01256.tar.gz
Dialyzer related cleanups
Diffstat (limited to 'src/rebar_otp_app.erl')
-rw-r--r--src/rebar_otp_app.erl5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/rebar_otp_app.erl b/src/rebar_otp_app.erl
index 4cac897..0c30062 100644
--- a/src/rebar_otp_app.erl
+++ b/src/rebar_otp_app.erl
@@ -68,8 +68,7 @@ clean(_Config, File) ->
%% If the app file is a .app.src, delete the generated .app file
case rebar_app_utils:is_app_src(File) of
true ->
- file:delete(rebar_app_utils:app_src_to_app(File)),
- ok;
+ file:delete(rebar_app_utils:app_src_to_app(File));
false ->
ok
end.
@@ -94,7 +93,7 @@ preprocess(AppSrcFile) ->
ok = file:write_file(AppFile, Spec),
%% Make certain that the ebin/ directory is available on the code path
- code:add_path(filename:absname(filename:dirname(AppFile))),
+ true = code:add_path(filename:absname(filename:dirname(AppFile))),
AppFile;