Skip to content

Commit

Permalink
Merge pull request #2383 from herwinw/push_args_instruction
Browse files Browse the repository at this point in the history
Remove unused variable from PushArgsInstruction
  • Loading branch information
herwinw committed Dec 14, 2024
2 parents 274836b + 1c2ddd8 commit 0410b9a
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion lib/natalie/compiler/instructions/push_args_instruction.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ def to_s
end

def generate(transform)
args = transform.temp('args')
if @for_block
transform.exec_and_push(:args, "args.to_array_for_block(env, #{@min_count}, #{@max_count || -1}, #{@spread ? 'true' : 'false'})")
elsif @to_array
Expand Down

0 comments on commit 0410b9a

Please sign in to comment.