aboutsummaryrefslogtreecommitdiffstats
path: root/test/rubygems/test_gem_stream_ui.rb
diff options
context:
space:
mode:
authorBenoit Daloze <eregontp@gmail.com>2022-01-14 14:17:59 +0100
committergit <svn-admin@ruby-lang.org>2022-01-14 23:38:09 +0900
commitda0f67c0383f57129c7a76255964b1ee739d8db8 (patch)
treeefbfb98e66230073793b47b4a1fc6d111207ee70 /test/rubygems/test_gem_stream_ui.rb
parent8d05047d72d0a4b97f57b23bddbca639375bbd03 (diff)
downloadruby-da0f67c0383f57129c7a76255964b1ee739d8db8.tar.gz
[rubygems/rubygems] Remove redundant condition
See https://github.com/rubygems/rubygems/pull/5210#discussion_r784807168 https://github.com/rubygems/rubygems/commit/cd0e961e81
Diffstat (limited to 'test/rubygems/test_gem_stream_ui.rb')
-rw-r--r--test/rubygems/test_gem_stream_ui.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/rubygems/test_gem_stream_ui.rb b/test/rubygems/test_gem_stream_ui.rb
index 2071526dfa..04de6dd36a 100644
--- a/test/rubygems/test_gem_stream_ui.rb
+++ b/test/rubygems/test_gem_stream_ui.rb
@@ -5,7 +5,7 @@ require 'timeout'
class TestGemStreamUI < Gem::TestCase
# increase timeout with MJIT for --jit-wait testing
- mjit_enabled = defined?(RubyVM::MJIT) ? RubyVM::MJIT.enabled? : defined?(RubyVM::MJIT) && RubyVM::MJIT.enabled?
+ mjit_enabled = defined?(RubyVM::MJIT) && RubyVM::MJIT.enabled?
SHORT_TIMEOUT = (RUBY_ENGINE == "ruby" && !mjit_enabled) ? 0.1 : 1.0
module IsTty