From 4e471e69862b62aec2358bd1a0d29737dea88738 Mon Sep 17 00:00:00 2001 From: Tuncer Ayaz Date: Mon, 9 Jan 2012 12:42:53 +0100 Subject: Fix Dialyzer warning --- src/rebar_upgrade.erl | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/rebar_upgrade.erl b/src/rebar_upgrade.erl index 3c63a6c..cfe321e 100644 --- a/src/rebar_upgrade.erl +++ b/src/rebar_upgrade.erl @@ -179,10 +179,13 @@ make_tar(NameVer, NewVer, NewName) -> ok = file:delete(Absname), case os:type() of {win32,_} -> - {ok, _} = file:copy( - filename:join([".", "releases", NewVer, "start.boot"]), - filename:join([".", "releases", NewVer, NewName ++ ".boot"])); - _ -> ok + {ok, _} = + file:copy( + filename:join([".", "releases", NewVer, "start.boot"]), + filename:join([".", "releases", NewVer, NewName ++ ".boot"])), + ok; + _ -> + ok end, {ok, Tar} = erl_tar:open(Absname, [write, compressed]), ok = erl_tar:add(Tar, "lib", []), -- cgit v1.1