Permalink
Browse files

Simplify find_dep_in_dir

  • Loading branch information...
1 parent 85e8200 commit fa38ed64ccd68bc97245b5f39552a1d8e1e6e258 @tuncer tuncer committed Mar 13, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/rebar_deps.erl
View
@@ -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) ->

0 comments on commit fa38ed6

Please sign in to comment.