aboutsummaryrefslogtreecommitdiffstats
path: root/thread.c
diff options
context:
space:
mode:
Diffstat (limited to 'thread.c')
-rw-r--r--thread.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/thread.c b/thread.c
index 251dc1b345..36723c6fc0 100644
--- a/thread.c
+++ b/thread.c
@@ -3326,12 +3326,7 @@ rb_thread_status(VALUE thread)
static VALUE
rb_thread_alive_p(VALUE thread)
{
- if (thread_finished(rb_thread_ptr(thread))) {
- return Qfalse;
- }
- else {
- return Qtrue;
- }
+ return RBOOL(!thread_finished(rb_thread_ptr(thread)));
}
/*