diff options
author | Olle Jonsson <olle.jonsson@auctionet.com> | 2020-04-19 22:39:42 +0200 |
---|---|---|
committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2020-06-05 07:32:42 +0900 |
commit | 5eacf4e72cffadde3c4c2b6dada6cd5343310ae3 (patch) | |
tree | e5e98963fa1a51886eaea7ba84201e05ee545e83 /lib/rubygems/security | |
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/security')
-rw-r--r-- | lib/rubygems/security/signer.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rubygems/security/signer.rb b/lib/rubygems/security/signer.rb index 8fb1b1ddc1..cc1d109dc8 100644 --- a/lib/rubygems/security/signer.rb +++ b/lib/rubygems/security/signer.rb @@ -109,7 +109,7 @@ class Gem::Security::Signer subject_alt_name = cert.extensions.find { |e| 'subjectAltName' == e.oid } if subject_alt_name - /\Aemail:/ =~ subject_alt_name.value + /\Aemail:/ =~ subject_alt_name.value # rubocop:disable Performance/StartWith $' || subject_alt_name.value else |