summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAkshay Birajdar <[email protected]>2025-01-27 11:18:30 +0530
committerHiroshi SHIBATA <[email protected]>2025-01-28 15:31:58 +0900
commitb48febf27f6ca40f712ead68a0cba890cf6f9c1b (patch)
tree9c80284a487a1e9a26b03e6ab563f704e218d2b1 /lib
parent9b2ebfc7294a61eec32962be0547dec8321b8330 (diff)
[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
Diffstat (limited to 'lib')
-rw-r--r--lib/bundler/worker.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bundler/worker.rb b/lib/bundler/worker.rb
index 3ebd6f01db..7137484cc6 100644
--- a/lib/bundler/worker.rb
+++ b/lib/bundler/worker.rb
@@ -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