1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

[rubygems/rubygems] Use parenthesis for clarity for ternary condition

https://github.com/rubygems/rubygems/commit/d1247472b9
This commit is contained in:
Benoit Daloze 2020-05-15 18:53:10 +02:00 committed by Hiroshi SHIBATA
parent b62e9c912d
commit 998ccb0831

View file

@ -7,7 +7,7 @@ class TestGemStreamUI < Gem::TestCase
# increase timeout with MJIT for --jit-wait testing
mjit_enabled = defined?(RubyVM::MJIT) && RubyVM::MJIT.enabled?
SHORT_TIMEOUT = RUBY_ENGINE == "ruby" && !mjit_enabled ? 0.1 : 1.0
SHORT_TIMEOUT = (RUBY_ENGINE == "ruby" && !mjit_enabled) ? 0.1 : 1.0
module IsTty
attr_accessor :tty