summaryrefslogtreecommitdiff
path: root/lib/rubygems/security
diff options
context:
space:
mode:
authorOlle Jonsson <olle.jonsson@auctionet.com>2020-04-19 22:39:42 +0200
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2020-06-05 07:32:42 +0900
commit5eacf4e72cffadde3c4c2b6dada6cd5343310ae3 (patch)
treee5e98963fa1a51886eaea7ba84201e05ee545e83 /lib/rubygems/security
parentf8f5e7fadf689a11a8ee28b7af4e7777e2dec1ea (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.rb2
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