diff options
| author | Mau Magnaguagno <maumagnaguagno@gmail.com> | 2023-03-13 23:04:58 -0300 |
|---|---|---|
| committer | git <svn-admin@ruby-lang.org> | 2023-03-16 12:55:01 +0000 |
| commit | 364364c3bd1067f37e4ce4e275b2c8c97984588f (patch) | |
| tree | f6f119da741e04fbfa9494ec3daa588aa9fff084 /test/ruby | |
| parent | cae4342dd559e34c1ce6219593f77f0ad80286da (diff) | |
[rubygems/rubygems] Improve TarHeader#calculate_checksum
String#unpack("C*") is equivalent to String#bytes and Array#inject {|a,b| a + b } is equivalent to Array#sum.
This is a minor enhancement in terms of speed and readability.
Diffstat (limited to 'test/ruby')
0 files changed, 0 insertions, 0 deletions
