diff options
author | Benoit Daloze <eregontp@gmail.com> | 2020-05-15 18:53:10 +0200 |
---|---|---|
committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2020-06-10 21:33:46 +0900 |
commit | 998ccb083135d65361b3b1e6c40c660bb627f31b (patch) | |
tree | ecc4f9850feb4733295f25eb712a7bf7200f4dd0 | |
parent | b62e9c912d744a1742a41be252855511f0a48032 (diff) |
[rubygems/rubygems] Use parenthesis for clarity for ternary condition
https://github.com/rubygems/rubygems/commit/d1247472b9
-rw-r--r-- | test/rubygems/test_gem_stream_ui.rb | 2 |
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 55907b0132..1326cd27ef 100644 --- a/test/rubygems/test_gem_stream_ui.rb +++ b/test/rubygems/test_gem_stream_ui.rb @@ -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 |