diff options
author | Olle Jonsson <[email protected]> | 2020-04-19 22:39:42 +0200 |
---|---|---|
committer | Hiroshi SHIBATA <[email protected]> | 2020-06-05 07:32:42 +0900 |
commit | 5eacf4e72cffadde3c4c2b6dada6cd5343310ae3 (patch) | |
tree | e5e98963fa1a51886eaea7ba84201e05ee545e83 /lib/rubygems/platform.rb | |
parent | f8f5e7fadf689a11a8ee28b7af4e7777e2dec1ea (diff) |
Enable rubocop-performance StartWith cop
- this would keep the could-be-a-string-method matches few
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/3184
Diffstat (limited to 'lib/rubygems/platform.rb')
-rw-r--r-- | lib/rubygems/platform.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rubygems/platform.rb b/lib/rubygems/platform.rb index 1692eb7e5d..868a9de3b9 100644 --- a/lib/rubygems/platform.rb +++ b/lib/rubygems/platform.rb @@ -150,7 +150,7 @@ class Gem::Platform # cpu ([nil,'universal'].include?(@cpu) or [nil, 'universal'].include?(other.cpu) or @cpu == other.cpu or - (@cpu == 'arm' and other.cpu =~ /\Aarm/)) and + (@cpu == 'arm' and other.cpu.start_with?("arm"))) and # os @os == other.os and |