From 920736460b687bfd513e83011d9d0e8617335d0a Mon Sep 17 00:00:00 2001 From: nagachika Date: Sat, 22 Dec 2012 13:08:24 +0000 Subject: * cont.c (rb_fiber_start): unify conditions. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38556 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- cont.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'cont.c') diff --git a/cont.c b/cont.c index 8521a07d76..1f4c2cfde0 100644 --- a/cont.c +++ b/cont.c @@ -1161,10 +1161,7 @@ rb_fiber_start(void) TH_POP_TAG(); if (state) { - if (state == TAG_RAISE) { - rb_threadptr_async_errinfo_enque(th, th->errinfo); - } - else if (state == TAG_FATAL) { + if (state == TAG_RAISE || state == TAG_FATAL) { rb_threadptr_async_errinfo_enque(th, th->errinfo); } else { -- cgit v1.2.3