This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
remove unnecessary (always true) condition in S_vdie
[perl5.git] / util.c
diff --git a/util.c b/util.c
index 50675d3..2576214 100644 (file)
--- a/util.c
+++ b/util.c
@@ -1369,9 +1369,9 @@ S_vdie(pTHX_ const char* pat, va_list *args)
 
     PL_restartop = die_where(message, msglen);
     SvFLAGS(ERRSV) |= utf8;
-    if ((!PL_restartop && was_in_eval) || PL_top_env->je_prev)
-       JMPENV_JUMP(3);
-    return PL_restartop;
+    JMPENV_JUMP(3);
+    /* NOTREACHED */
+    return NULL;
 }
 
 #if defined(PERL_IMPLICIT_CONTEXT)