Omit NULL check of e->cxt in OP_RETURN_BLK

Since `mrb->c` is never `NULL`, there is no need to check it beforehand.
This commit is contained in:
dearblue
2024-02-24 21:38:51 +09:00
parent 6248e9c2ef
commit e94eef6f98
+1 -1
View File
@@ -2311,7 +2311,7 @@ RETRY_TRY_BLOCK:
if (MRB_PROC_ENV_P(dst)) {
struct REnv *e = MRB_PROC_ENV(dst);
if (!MRB_ENV_ONSTACK_P(e) || (e->cxt && e->cxt != mrb->c)) {
if (!MRB_ENV_ONSTACK_P(e) || e->cxt != mrb->c) {
localjump_error(mrb, LOCALJUMP_ERROR_RETURN);
goto L_RAISE;
}