From fa38ed64ccd68bc97245b5f39552a1d8e1e6e258 Mon Sep 17 00:00:00 2001 From: Tuncer Ayaz Date: Sun, 13 Mar 2011 15:55:36 +0100 Subject: [PATCH] Simplify find_dep_in_dir --- src/rebar_deps.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rebar_deps.erl b/src/rebar_deps.erl index c7c236d..01cfad3 100644 --- a/src/rebar_deps.erl +++ b/src/rebar_deps.erl @@ -218,7 +218,7 @@ find_dep(Dep, undefined) -> %% 'source' is undefined. If Dep is not satisfied locally, %% go ahead and find it amongst the lib_dir's. case find_dep_in_dir(Dep, get_deps_dir(Dep#dep.app)) of - {avail, Dir} -> {avail, Dir}; + {avail, _Dir} = Avail -> Avail; {missing, _} -> find_dep_in_dir(Dep, get_lib_dir(Dep#dep.app)) end; find_dep(Dep, _Source) ->