[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
This commit is contained in:
Hiroshi SHIBATA 2023-03-22 12:10:38 +09:00
parent 7e3612585d
commit 25ed2e7415
Notes: git 2023-03-23 08:19:27 +00:00

View File

@ -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