From d496be287131fb3d31fcab0855e2f1f4769dd3ae Mon Sep 17 00:00:00 2001 From: Daniel Luna Date: Tue, 17 Jul 2012 13:20:45 -0400 Subject: [PATCH] rebar_rel_utils: remove two lines of noop --- src/rebar_rel_utils.erl | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/rebar_rel_utils.erl b/src/rebar_rel_utils.erl index e749c55..085dbd9 100644 --- a/src/rebar_rel_utils.erl +++ b/src/rebar_rel_utils.erl @@ -107,8 +107,7 @@ get_rel_apps(Name, Path) -> get_rel_file_path(Name, Path) -> [RelFile] = filelib:wildcard(filename:join([Path, "releases", "*", Name ++ ".rel"])), - [BinDir|_] = re:replace(RelFile, Name ++ "\\.rel", ""), - filename:join([binary_to_list(BinDir), Name ++ ".rel"]). + RelFile. %% Get the previous release path from a global variable get_previous_release_path(Config) ->