Permalink
Browse files

Fix Dialyzer warnings in rebar_upgrade

  • Loading branch information...
1 parent 7ac3a5a commit 0e729bf90e64a00bd8915e227d83f82877038e9e @tuncer tuncer committed Jan 29, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/rebar_upgrade.erl
View
@@ -54,7 +54,7 @@
run_systools(NameVer, NewName),
%% Boot file changes
- boot_files(NewVer, NewName),
+ {ok, _} = boot_files(NewVer, NewName),
%% Extract upgrade and tar it back up with changes
make_tar(NameVer),
@@ -183,7 +183,7 @@ cleanup(NameVer, Name, Ver) ->
filename:join([".", NameVer ++ ".script"]),
filename:join([".", "relup"])
],
- [ok = file:delete(F) || F <- Files],
+ lists:foreach(fun(F) -> ok = file:delete(F) end, Files),
ok = remove_dir_tree("releases"),
ok = remove_dir_tree("lib").

0 comments on commit 0e729bf

Please sign in to comment.