[rubygems/rubygems] Remove respond_to? check for Thread#name=

Since bundler now requires 3.3.1, we no longer need to do respond_to?
check before setting thread name.

https://github.com/rubygems/rubygems/commit/bfc37fc7db
This commit is contained in:
Akshay Birajdar 2025-01-27 11:18:30 +05:30 committed by Hiroshi SHIBATA
parent 9b2ebfc729
commit b48febf27f

View File

@ -88,7 +88,7 @@ module Bundler
@threads = Array.new(@size) do |i|
Thread.start { process_queue(i) }.tap do |thread|
thread.name = "#{name} Worker ##{i}" if thread.respond_to?(:name=)
thread.name = "#{name} Worker ##{i}"
end
rescue ThreadError => e
creation_errors << e