1
1
Fork 0
mirror of https://github.com/schollz/croc.git synced 2025-10-10 21:01:02 +02:00

use parameter names with better readability

This commit is contained in:
mengxun 2025-07-07 11:47:03 +08:00
parent 382845929c
commit 5ca1603dde

View file

@ -18,7 +18,7 @@ func CompressWithOption(src []byte, level int) []byte {
// Compress returns a compressed byte slice.
func Compress(src []byte) []byte {
compressedData := new(bytes.Buffer)
compress(src, compressedData, -2)
compress(src, compressedData, flate.HuffmanOnly)
return compressedData.Bytes()
}