Adjust indent and nesting [ci skip]

This commit is contained in:
Nobuyoshi Nakada 2022-06-02 14:34:48 +09:00
parent 9108db961d
commit dfc8060756
No known key found for this signature in database
GPG Key ID: 7CD2805BFA3770C6

4
gc.c
View File

@ -13604,14 +13604,12 @@ rb_raw_obj_info(char *buff, const int buff_size, VALUE obj)
else if (RBASIC(obj)->klass == 0) { else if (RBASIC(obj)->klass == 0) {
APPENDF((BUFF_ARGS, "(temporary internal)")); APPENDF((BUFF_ARGS, "(temporary internal)"));
} }
else { else if (RTEST(RBASIC(obj)->klass)) {
if (RTEST(RBASIC(obj)->klass)) {
VALUE class_path = rb_class_path_cached(RBASIC(obj)->klass); VALUE class_path = rb_class_path_cached(RBASIC(obj)->klass);
if (!NIL_P(class_path)) { if (!NIL_P(class_path)) {
APPENDF((BUFF_ARGS, "(%s)", RSTRING_PTR(class_path))); APPENDF((BUFF_ARGS, "(%s)", RSTRING_PTR(class_path)));
} }
} }
}
#if GC_DEBUG #if GC_DEBUG
APPENDF((BUFF_ARGS, "@%s:%d", RANY(obj)->file, RANY(obj)->line)); APPENDF((BUFF_ARGS, "@%s:%d", RANY(obj)->file, RANY(obj)->line));