Skip to content

Commit

Permalink
Avoid unnecessary array allocation
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremyevans committed Aug 14, 2024
1 parent cf967ab commit 8979daf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/minitest/hooks/test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def with_info_handler(*args, &block)
@instance.time = 0
@instance.name = "around_all"

reporter, *_ = args
reporter = args[0]

begin
@instance.around_all do
Expand Down

0 comments on commit 8979daf

Please sign in to comment.