[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:
parent
9b2ebfc729
commit
b48febf27f
@ -88,7 +88,7 @@ module Bundler
|
|||||||
|
|
||||||
@threads = Array.new(@size) do |i|
|
@threads = Array.new(@size) do |i|
|
||||||
Thread.start { process_queue(i) }.tap do |thread|
|
Thread.start { process_queue(i) }.tap do |thread|
|
||||||
thread.name = "#{name} Worker ##{i}" if thread.respond_to?(:name=)
|
thread.name = "#{name} Worker ##{i}"
|
||||||
end
|
end
|
||||||
rescue ThreadError => e
|
rescue ThreadError => e
|
||||||
creation_errors << e
|
creation_errors << e
|
||||||
|
Loading…
x
Reference in New Issue
Block a user