From dfba6dd6f9ac1d0360dcfdf8194bb1c8ff25c7a8 Mon Sep 17 00:00:00 2001 From: Manuel Rubio Date: Sat, 21 Sep 2013 22:28:49 +0200 Subject: Fix issues introduced in #137 (4dfdd72) * fix Dialyzer warning * fix formatting --- src/rebar_upgrade.erl | 27 ++++++++++++++------------- 1 file changed, 14 insertions(+), 13 deletions(-) (limited to 'src') diff --git a/src/rebar_upgrade.erl b/src/rebar_upgrade.erl index 1441c5a..5814e51 100644 --- a/src/rebar_upgrade.erl +++ b/src/rebar_upgrade.erl @@ -185,21 +185,22 @@ boot_files(TargetDir, Ver, Name) -> filename:join([".", ?TMP, "releases", Ver, "start_clean.boot"])), SysConfig = filename:join([TargetDir, "releases", Ver, "sys.config"]), - case filelib:is_regular(SysConfig) of - true -> - {ok, _} = file:copy( - SysConfig, - filename:join([".", ?TMP, "releases", Ver, "sys.config"])); - false -> ok - end, + _ = case filelib:is_regular(SysConfig) of + true -> + {ok, _} = file:copy( + SysConfig, + filename:join([".", ?TMP, "releases", Ver, + "sys.config"])); + false -> ok + end, VmArgs = filename:join([TargetDir, "releases", Ver, "vm.args"]), - case filelib:is_regular(VmArgs) of - true -> - {ok, _} = file:copy( - VmArgs, - filename:join([".", ?TMP, "releases", Ver, "vm.args"])); - false -> {ok, 0} + case filelib:is_regular(VmArgs) of + true -> + {ok, _} = file:copy( + VmArgs, + filename:join([".", ?TMP, "releases", Ver, "vm.args"])); + false -> {ok, 0} end. make_tar(NameVer, NewVer, NewName) -> -- cgit v1.1