Permalink
Browse files

a == b if c is silly... just use &&

  • Loading branch information...
1 parent 6d47899 commit 1b5b9be9d3d3ad6bb91ab65e1cf48e204fc05ba5 @indirect indirect committed Nov 12, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/bundler/rubygems_ext.rb
@@ -181,7 +181,7 @@ def generic(p)
GENERIC_CACHE[p] ||= begin
found = GENERICS.find do |p2|
- p.os == p2.os if p2.is_a?(Gem::Platform)
+ p2.is_a?(Gem::Platform) && p.os == p2.os
end
found || Gem::Platform::RUBY
end

0 comments on commit 1b5b9be

Please sign in to comment.