summaryrefslogtreecommitdiff
path: root/lib/rubygems
diff options
context:
space:
mode:
authorHiroshi SHIBATA <hsbt@ruby-lang.org>2023-03-22 12:10:38 +0900
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2023-03-23 17:18:49 +0900
commit25ed2e7415ded52837e3ade1b43efe1def9493d2 (patch)
treee25c7a66fa9f5dabf89a5525125bddfd20b6b448 /lib/rubygems
parent7e3612585da4ffa8440d1120043f7dca00c32624 (diff)
downloadruby-25ed2e7415ded52837e3ade1b43efe1def9493d2.tar.gz
[rubygems/rubygems] util/rubocop -A --only Lint/EmptyExpression
Thread.report_on_exception is always defined after Ruby 2.4 or later. https://github.com/rubygems/rubygems/commit/274da54f38
Diffstat (limited to 'lib/rubygems')
-rw-r--r--lib/rubygems/core_ext/tcpsocket_init.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rubygems/core_ext/tcpsocket_init.rb b/lib/rubygems/core_ext/tcpsocket_init.rb
index c9e0a92953..283931d56a 100644
--- a/lib/rubygems/core_ext/tcpsocket_init.rb
+++ b/lib/rubygems/core_ext/tcpsocket_init.rb
@@ -17,7 +17,7 @@ module CoreExtensions
cond_var = Thread::ConditionVariable.new
Addrinfo.foreach(host, serv, nil, :STREAM) do |addr|
- Thread.report_on_exception = false if defined? Thread.report_on_exception = ()
+ Thread.report_on_exception = false
threads << Thread.new(addr) do
# give head start to ipv6 addresses