Skip to content
This repository has been archived by the owner on Apr 14, 2021. It is now read-only.

Commit

Permalink
more readable assignment and use of required_by (thanks @raggi)
Browse files Browse the repository at this point in the history
  • Loading branch information
indirect committed Nov 12, 2010
1 parent 47e08d4 commit 9c51e4f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/bundler/resolver.rb
Expand Up @@ -233,7 +233,8 @@ def resolve(reqs, activated)
# to keep a list of every spot a failure happened.
if parent && parent.name != 'bundler'
debug { " -> Jumping to: #{parent.name}" }
throw parent.name, existing.respond_to?(:required_by) && existing.required_by.last && existing.required_by.last.name
required_by = existing.respond_to?(:required_by) && existing.required_by.last
throw parent.name, required_by && required_by.name
else
# The original set of dependencies conflict with the base set of specs
# passed to the resolver. This is by definition an impossible resolve.
Expand Down

0 comments on commit 9c51e4f

Please sign in to comment.