[前][次][番号順一覧][スレッド一覧]

ruby-changes:61656

From: Benoit <ko1@a...>
Date: Wed, 10 Jun 2020 21:35:07 +0900 (JST)
Subject: [ruby-changes:61656] 998ccb0831 (master): [rubygems/rubygems] Use parenthesis for clarity for ternary condition

https://git.ruby-lang.org/ruby.git/commit/?id=998ccb0831

From 998ccb083135d65361b3b1e6c40c660bb627f31b Mon Sep 17 00:00:00 2001
From: Benoit Daloze <eregontp@g...>
Date: Fri, 15 May 2020 18:53:10 +0200
Subject: [rubygems/rubygems] Use parenthesis for clarity for ternary condition
 https://github.com/rubygems/rubygems/commit/d1247472b9


diff --git a/test/rubygems/test_gem_stream_ui.rb b/test/rubygems/test_gem_stream_ui.rb
index 55907b0..1326cd2 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 https://github.com/ruby/ruby/blob/trunk/test/rubygems/test_gem_stream_ui.rb#L7
 
   # 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
-- 
cgit v0.10.2


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]