diff options
author | Tuncer Ayaz <tuncer.ayaz@gmail.com> | 2011-03-13 15:55:36 +0100 |
---|---|---|
committer | Tuncer Ayaz <tuncer.ayaz@gmail.com> | 2011-03-13 15:55:36 +0100 |
commit | fa38ed64ccd68bc97245b5f39552a1d8e1e6e258 (patch) | |
tree | 744aa3a8d7354723fc475ce818826b18eb5272c4 | |
parent | 85e820096ddf410a4f8dfdcb3d70fd1fc9600a9d (diff) |
Simplify find_dep_in_dir
-rw-r--r-- | src/rebar_deps.erl | 2 |
1 files changed, 1 insertions, 1 deletions
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) -> |