diff options
author | Samuel Giddins <segiddins@segiddins.me> | 2015-11-26 12:21:10 -0600 |
---|---|---|
committer | Samuel Giddins <segiddins@segiddins.me> | 2015-11-26 12:21:10 -0600 |
commit | bf5c235523b98bad8e69b172f0d9bc02b8616604 (patch) | |
tree | c06c020ab3b7475347e80d12047fb6cea99a075e /lib/bundler/match_platform.rb | |
parent | d5f3f861f273ae95cba12a0e6b230005e1061964 (diff) | |
download | bundler-bf5c235523b98bad8e69b172f0d9bc02b8616604.tar.gz |
[RuboCop] Enable Style/AndOr
Diffstat (limited to 'lib/bundler/match_platform.rb')
-rw-r--r-- | lib/bundler/match_platform.rb | 4 |
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 |