mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
mruby-proc-ext/proc.c (mrb_proc_parameters): unify conditions.
This commit is contained in:
@@ -122,13 +122,7 @@ mrb_proc_parameters(mrb_state *mrb, mrb_value self)
|
||||
return mrb_ary_new(mrb);
|
||||
}
|
||||
irep = proc->body.irep;
|
||||
if (!irep) {
|
||||
return mrb_ary_new(mrb);
|
||||
}
|
||||
if (!irep->lv) {
|
||||
return mrb_ary_new(mrb);
|
||||
}
|
||||
if (*irep->iseq != OP_ENTER) {
|
||||
if (!irep || !irep->lv || *irep->iseq != OP_ENTER) {
|
||||
return mrb_ary_new(mrb);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user