aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2022-06-02 14:34:48 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2022-06-02 14:34:48 +0900
commitdfc8060756b25a33e078883ef095af6600c0a54b (patch)
tree30efe6704308e187f27a2d7bc3a1b257c74faee9
parent9108db961dc24615d3fd1093d95521e53f41e61c (diff)
downloadruby-dfc8060756b25a33e078883ef095af6600c0a54b.tar.gz
Adjust indent and nesting [ci skip]
-rw-r--r--gc.c4
1 files changed, 1 insertions, 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)
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