[rubygems/rubygems] Use parenthesis for clarity for ternary condition
https://github.com/rubygems/rubygems/commit/d1247472b9
This commit is contained in:
parent
b62e9c912d
commit
998ccb0831
@ -7,7 +7,7 @@ class TestGemStreamUI < Gem::TestCase
|
|||||||
|
|
||||||
# increase timeout with MJIT for --jit-wait testing
|
# increase timeout with MJIT for --jit-wait testing
|
||||||
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
|
SHORT_TIMEOUT = (RUBY_ENGINE == "ruby" && !mjit_enabled) ? 0.1 : 1.0
|
||||||
|
|
||||||
module IsTty
|
module IsTty
|
||||||
attr_accessor :tty
|
attr_accessor :tty
|
||||||
|
Loading…
x
Reference in New Issue
Block a user