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

ruby-changes:50044

From: nobu <ko1@a...>
Date: Sat, 3 Feb 2018 00:16:28 +0900 (JST)
Subject: [ruby-changes:50044] nobu:r62162 (trunk): eval.c: unnecessary argument

nobu	2018-02-03 00:16:22 +0900 (Sat, 03 Feb 2018)

  New Revision: 62162

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

  Log:
    eval.c: unnecessary argument
    
    * eval.c (rb_interrupt): removed unnecessary convertsion specifier
      and an empty string.

  Modified files:
    trunk/eval.c
Index: eval.c
===================================================================
--- eval.c	(revision 62161)
+++ eval.c	(revision 62162)
@@ -641,7 +641,7 @@ rb_exc_fatal(VALUE mesg) https://github.com/ruby/ruby/blob/trunk/eval.c#L641
 void
 rb_interrupt(void)
 {
-    rb_raise(rb_eInterrupt, "%s", "");
+    rb_raise(rb_eInterrupt, "");
 }
 
 enum {raise_opt_cause, raise_max_opt}; /*< \private */

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

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