diff options
author | S-H-GAMELINKS <gamelinks007@gmail.com> | 2022-09-24 22:35:10 +0900 |
---|---|---|
committer | Samuel Williams <samuel.williams@oriontransfer.co.nz> | 2022-09-25 11:11:06 +1300 |
commit | 205c252ec7364ea30ab39cc3c316fdada781eb1b (patch) | |
tree | 1dbb0ae09aa928a1544808c16d82e3a00d89da5e /proc.c | |
parent | 08476c45799deeba0e76be54e160e87330e8cf9e (diff) | |
download | ruby-205c252ec7364ea30ab39cc3c316fdada781eb1b.tar.gz |
Reuse rb_method_call_kw function
Diffstat (limited to 'proc.c')
-rw-r--r-- | proc.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -2452,8 +2452,7 @@ method_clone(VALUE self) static VALUE rb_method_call_pass_called_kw(int argc, const VALUE *argv, VALUE method) { - VALUE procval = rb_block_given_p() ? rb_block_proc() : Qnil; - return rb_method_call_with_block_kw(argc, argv, method, procval, RB_PASS_CALLED_KEYWORDS); + return rb_method_call_kw(argc, argv, method, RB_PASS_CALLED_KEYWORDS); } VALUE |