Skip to content

Commit

Permalink
Use a constant empty tar header to avoid extra allocations
Browse files Browse the repository at this point in the history
  • Loading branch information
segiddins committed Apr 30, 2024
1 parent f8d15c4 commit 88d38ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/rubygems/test_gem_package_tar_header.rb
Expand Up @@ -121,7 +121,7 @@ def test_empty
uid: 0,
uname: "",
version: 0,
), Gem::Package::TarHeader.const_get(:EMPTY)
), @tar_header
end

def test_equals2
Expand Down

0 comments on commit 88d38ac

Please sign in to comment.