Permalink
Browse files

Style fix. unless/else hurts my brain.

  • Loading branch information...
1 parent 0cde388 commit eaf367ee1cfb4e20bba2d3479ccb7e0a57cb0973 @evanphx evanphx committed Jun 11, 2011
Showing with 4 additions and 3 deletions.
  1. +4 −3 lib/rubygems/custom_require.rb
@@ -41,10 +41,11 @@ def require path
unless spec then
found_specs = Gem::Specification.find_in_unresolved path
- unless found_specs.empty? then
- found_specs = [found_specs.last]
- else
+
+ if found_specs.empty? then
found_specs = Gem::Specification.find_in_unresolved_tree path
+ else
+ found_specs = [found_specs.last]
end
found_specs.each do |found_spec|

0 comments on commit eaf367e

Please sign in to comment.