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

ruby-changes:59896

From: =E5=8D=9C=E9=83=A8=E6=98=8C=E5=B9=B3 <ko1@a...>
Date: Sat, 1 Feb 2020 14:03:20 +0900 (JST)
Subject: [ruby-changes:59896] 7cff2f4585 (master): fix delete unnecessary return

https://git.ruby-lang.org/ruby.git/commit/?id=7cff2f4585

From 7cff2f458575237bc9f673a2001f56b5924920c8 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E5=8D=9C=E9=83=A8=E6=98=8C=E5=B9=B3?=
 <shyouhei@r...>
Date: Sat, 1 Feb 2020 14:02:05 +0900
Subject: fix delete unnecessary return

Was my mistake to put return here.

diff --git a/ext/-test-/cxxanyargs/cxxanyargs.cpp b/ext/-test-/cxxanyargs/cxxanyargs.cpp
index b0d48e0..3079069 100644
--- a/ext/-test-/cxxanyargs/cxxanyargs.cpp
+++ b/ext/-test-/cxxanyargs/cxxanyargs.cpp
@@ -156,7 +156,7 @@ namespace test_rb_rescue { https://github.com/ruby/ruby/blob/trunk/ext/-test-/cxxanyargs/cxxanyargs.cpp#L156
     {
 #ifdef HAVE_NULLPTR
         rb_rescue(RUBY_METHOD_FUNC(begin), self, nullptr, self);
-        return rb_rescue(begin, self, nullptr, self);
+        rb_rescue(begin, self, nullptr, self);
 #endif
 
         rb_rescue(RUBY_METHOD_FUNC(begin), self, RUBY_METHOD_FUNC(rescue), self); // old
-- 
cgit v0.10.2


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

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