summaryrefslogtreecommitdiff
path: root/thread.c
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2025-06-17 00:42:46 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2025-06-17 12:30:18 +0900
commita60bf9e693706c69484521d4967c9beb4d45772b (patch)
tree29ae5308d700b94cecac1638eb00009150b771eb /thread.c
parentc09619d91163ea7c042ee3b5de20c23eaf5a2aba (diff)
* adjust indent
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/13634
Diffstat (limited to 'thread.c')
-rw-r--r--thread.c3
1 files changed, 2 insertions, 1 deletions
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);