Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

  • Loading branch information...
commit 9c51e4f53552ec9ed28d09b42666580444423d6e 1 parent 47e08d4
André Arko indirect authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  lib/bundler/resolver.rb
3  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.
Please sign in to comment.
Something went wrong with that request. Please try again.