diff --git a/compile.c b/compile.c index cbde124516..6bcfcd3398 100644 --- a/compile.c +++ b/compile.c @@ -13384,7 +13384,8 @@ outer_variable_cmp(const void *a, const void *b, void *arg) if (!ap->name) { return -1; - } else if (!bp->name) { + } + else if (!bp->name) { return 1; } diff --git a/hash.c b/hash.c index be26e0eb3f..379dac814b 100644 --- a/hash.c +++ b/hash.c @@ -3872,7 +3872,6 @@ rb_hash_values(VALUE hash) } rb_ary_set_len(values, size); } - else { rb_hash_foreach(hash, values_i, values); } diff --git a/proc.c b/proc.c index 98aa10d59f..8543110476 100644 --- a/proc.c +++ b/proc.c @@ -1562,7 +1562,8 @@ rb_sym_to_proc(VALUE sym) RARRAY_ASET(sym_proc_cache, index, procval); return RB_GC_GUARD(procval); - } else { + } + else { return sym_proc_new(rb_cProc, sym); } } diff --git a/re.c b/re.c index e666a7c3d4..b47538d594 100644 --- a/re.c +++ b/re.c @@ -3507,7 +3507,8 @@ rb_reg_regcomp(VALUE str) return reg_cache; return reg_cache = rb_reg_new_str(str, 0); - } else { + } + else { return rb_reg_new_str(str, 0); } } diff --git a/thread.c b/thread.c index 41bd6c9ec6..5575157728 100644 --- a/thread.c +++ b/thread.c @@ -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 { + } + else { (*task->func)(task->data); } ruby_xfree(task);