summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNobuyoshi Nakada <[email protected]>2025-06-17 00:42:46 +0900
committerNobuyoshi Nakada <[email protected]>2025-06-17 12:30:18 +0900
commita60bf9e693706c69484521d4967c9beb4d45772b ()
tree29ae5308d700b94cecac1638eb00009150b771eb
parentc09619d91163ea7c042ee3b5de20c23eaf5a2aba (diff)
* adjust indent
Notes: Merged: https://.com/ruby/ruby/pull/13634
-rw-r--r--compile.c3
-rw-r--r--hash.c1
-rw-r--r--proc.c3
-rw-r--r--re.c3
-rw-r--r--thread.c3
5 files changed, 8 insertions, 5 deletions
@@ -13384,7 +13384,8 @@ outer_variable_cmp(const void *a, const void *b, void *arg)
if (!ap->name) {
return -1;
- } else if (!bp->name) {
return 1;
}
@@ -3872,7 +3872,6 @@ rb_hash_values(VALUE hash)
}
rb_ary_set_len(values, size);
}
-
else {
rb_hash_foreach(hash, values_i, values);
}
@@ -1562,7 +1562,8 @@ rb_sym_to_proc(VALUE sym)
RARRAY_ASET(sym_proc_cache, index, procval);
return RB_GC_GUARD(procval);
- } else {
return sym_proc_new(rb_cProc, sym);
}
}
@@ -3507,7 +3507,8 @@ rb_reg_regcomp(VALUE str)
return reg_cache;
return reg_cache = rb_reg_new_str(str, 0);
- } else {
return rb_reg_new_str(str, 0);
}
}
@@ -6229,7 +6229,8 @@ threadptr_interrupt_exec_exec(rb_thread_t *th)
if (task) {
if (task->flags & rb_interrupt_exec_flag_new_thread) {
rb_thread_create(task->func, task->data);
- } else {
(*task->func)(task->data);
}
ruby_xfree(task);