Permalink
Browse files

more readable assignment and use of required_by (thanks @raggi)

  • Loading branch information...
1 parent 47e08d4 commit 9c51e4f53552ec9ed28d09b42666580444423d6e @indirect indirect committed Nov 12, 2010
Showing with 2 additions and 1 deletion.
  1. +2 −1 lib/bundler/resolver.rb
View
@@ -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.

0 comments on commit 9c51e4f

Please sign in to comment.