summaryrefslogtreecommitdiff
path: root/lib/bundler/match_platform.rb
diff options
context:
space:
mode:
authorSamuel Giddins <segiddins@segiddins.me>2015-11-26 12:21:10 -0600
committerSamuel Giddins <segiddins@segiddins.me>2015-11-26 12:21:10 -0600
commitbf5c235523b98bad8e69b172f0d9bc02b8616604 (patch)
treec06c020ab3b7475347e80d12047fb6cea99a075e /lib/bundler/match_platform.rb
parentd5f3f861f273ae95cba12a0e6b230005e1061964 (diff)
downloadbundler-bf5c235523b98bad8e69b172f0d9bc02b8616604.tar.gz
[RuboCop] Enable Style/AndOr
Diffstat (limited to 'lib/bundler/match_platform.rb')
-rw-r--r--lib/bundler/match_platform.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/bundler/match_platform.rb b/lib/bundler/match_platform.rb
index 1dda3cadc1..f1d95bfb59 100644
--- a/lib/bundler/match_platform.rb
+++ b/lib/bundler/match_platform.rb
@@ -5,8 +5,8 @@ module Bundler
include GemHelpers
def match_platform(p)
- Gem::Platform::RUBY == platform or
- platform.nil? or p == platform or
+ Gem::Platform::RUBY == platform ||
+ platform.nil? || p == platform ||
generic(Gem::Platform.new(platform)) === p
end
end