ruby-changes:72039
From: Nobuyoshi <ko1@a...>
Date: Thu, 2 Jun 2022 14:35:46 +0900 (JST)
Subject: [ruby-changes:72039] dfc8060756 (master): Adjust indent and nesting [ci skip]
https://git.ruby-lang.org/ruby.git/commit/?id=dfc8060756 From dfc8060756b25a33e078883ef095af6600c0a54b Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada <nobu@r...> Date: Thu, 2 Jun 2022 14:34:48 +0900 Subject: Adjust indent and nesting [ci skip] --- gc.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/gc.c b/gc.c index c9c2bd8ad4..e4daeffbe7 100644 --- a/gc.c +++ b/gc.c @@ -13604,13 +13604,11 @@ rb_raw_obj_info(char *buff, const int buff_size, VALUE obj) https://github.com/ruby/ruby/blob/trunk/gc.c#L13604 else if (RBASIC(obj)->klass == 0) { APPENDF((BUFF_ARGS, "(temporary internal)")); } - else { - if (RTEST(RBASIC(obj)->klass)) { + else if (RTEST(RBASIC(obj)->klass)) { VALUE class_path = rb_class_path_cached(RBASIC(obj)->klass); if (!NIL_P(class_path)) { APPENDF((BUFF_ARGS, "(%s)", RSTRING_PTR(class_path))); } - } } #if GC_DEBUG -- cgit v1.2.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/