diff options
author | st0012 <[email protected]> | 2022-10-02 10:20:26 +0100 |
---|---|---|
committer | git <[email protected]> | 2022-10-03 07:00:53 +0900 |
commit | b97e909ef476a6facbaec665a205fee486371044 (patch) | |
tree | c1c05c1c72aeb2836456aaa1bb41e16021a4ac66 /lib/irb/context.rb | |
parent | 7b88ffb34fc995d7499fd9ed384cf7f5ba12994e (diff) |
[ruby/irb] Remove unnecessary Thread presence check
They were introduced around 20 years ago, when Thread is not yet
stabilized. So we don't need them anymore.
https://github.com/ruby/irb/commit/4c75e03b2b
Diffstat (limited to 'lib/irb/context.rb')
-rw-r--r-- | lib/irb/context.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/irb/context.rb b/lib/irb/context.rb index b74cae1223..a3b7dda8cd 100644 --- a/lib/irb/context.rb +++ b/lib/irb/context.rb @@ -32,7 +32,7 @@ module IRB else @workspace = WorkSpace.new end - @thread = Thread.current if defined? Thread + @thread = Thread.current # copy of default configuration @ap_name = IRB.conf[:AP_NAME] |