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

ruby-changes:51252

From: nobu <ko1@a...>
Date: Fri, 18 May 2018 09:38:02 +0900 (JST)
Subject: [ruby-changes:51252] nobu:r63458 (trunk): redmine-backporter.rb: suppress a warning [ci skip]

nobu	2018-05-18 09:37:59 +0900 (Fri, 18 May 2018)

  New Revision: 63458

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=63458

  Log:
    redmine-backporter.rb: suppress a warning [ci skip]
    
    * tool/redmine-backporter.rb (StringScanner.readline): use `true`
      to suppress a "literal in condition" warning.

  Modified files:
    trunk/tool/redmine-backporter.rb
Index: tool/redmine-backporter.rb
===================================================================
--- tool/redmine-backporter.rb	(revision 63457)
+++ tool/redmine-backporter.rb	(revision 63458)
@@ -215,7 +215,7 @@ class << Readline https://github.com/ruby/ruby/blob/trunk/tool/redmine-backporter.rb#L215
     console.print prompt
     console.flush
     line = ''
-    while 1
+    while true
       case c = console.getch
       when "\r", "\n"
         puts

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

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