Skip to content

Commit 442e960

Browse files
committed
Remove extra parens
1 parent 087d4ef commit 442e960

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/truffle/truffle/cext_ruby.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,14 +51,14 @@ def rb_iterate_call_block(callback, block_arg, callback_arg, &block)
5151
rb_tr_unwrap(execute_with_mutex(callback, rb_tr_wrap(block_arg), rb_tr_wrap(callback_arg)))
5252
end
5353

54-
def call_with_thread_locally_stored_block(function, *arg, &block)
54+
def call_with_thread_locally_stored_block(function, *args, &block)
5555
# MRI puts the block to a thread local th->passed_block and later rb_funcall reads it,
5656
# we have to do the same
5757
# TODO (pitr-ch 14-Dec-2017): This is fixed just for rb_iterate with a rb_funcall in it combination
5858
previous_block = Thread.current[:__C_BLOCK__]
5959
begin
6060
Thread.current[:__C_BLOCK__] = block
61-
rb_tr_unwrap(execute_with_mutex( function, *(arg.map! {|x| Truffle::CExt.rb_tr_wrap(x) }), &block))
61+
rb_tr_unwrap(execute_with_mutex(function, *args.map! { |arg| Truffle::CExt.rb_tr_wrap(arg) }, &block))
6262
ensure
6363
Thread.current[:__C_BLOCK__] = previous_block
6464
end

0 commit comments

Comments
 (0)