From 92c7417d7322f550c076459fa70a0679f8b61e5a Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Fri, 22 Jul 2022 21:57:50 +0900 Subject: Adjust indents [ci skip] --- ext/objspace/objspace.c | 6 +++--- ext/objspace/objspace_dump.c | 7 ++++--- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/ext/objspace/objspace.c b/ext/objspace/objspace.c index fd5f770696..0b1b094325 100644 --- a/ext/objspace/objspace.c +++ b/ext/objspace/objspace.c @@ -62,9 +62,9 @@ total_i(VALUE v, void *ptr) struct total_data *data = (struct total_data *)ptr; if (!rb_objspace_internal_object_p(v)) { - if (data->klass == 0 || rb_obj_is_kind_of(v, data->klass)) { - data->total += rb_obj_memsize_of(v); - } + if (data->klass == 0 || rb_obj_is_kind_of(v, data->klass)) { + data->total += rb_obj_memsize_of(v); + } } } diff --git a/ext/objspace/objspace_dump.c b/ext/objspace/objspace_dump.c index 91d9eec4f3..2917d49331 100644 --- a/ext/objspace/objspace_dump.c +++ b/ext/objspace/objspace_dump.c @@ -76,7 +76,8 @@ buffer_ensure_capa(struct dump_config *dc, unsigned long requested) } } -static void buffer_append(struct dump_config *dc, const char *cstr, unsigned long len) +static void +buffer_append(struct dump_config *dc, const char *cstr, unsigned long len) { if (LIKELY(len > 0)) { buffer_ensure_capa(dc, len); @@ -525,8 +526,8 @@ dump_object(VALUE obj, struct dump_config *dc) break; case T_ZOMBIE: - dump_append(dc, "}\n"); - return; + dump_append(dc, "}\n"); + return; default: break; -- cgit v1.2.3