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:
parent
382845929c
commit
5ca1603dde
1 changed files with 1 additions and 1 deletions
|
@ -18,7 +18,7 @@ func CompressWithOption(src []byte, level int) []byte {
|
||||||
// Compress returns a compressed byte slice.
|
// Compress returns a compressed byte slice.
|
||||||
func Compress(src []byte) []byte {
|
func Compress(src []byte) []byte {
|
||||||
compressedData := new(bytes.Buffer)
|
compressedData := new(bytes.Buffer)
|
||||||
compress(src, compressedData, -2)
|
compress(src, compressedData, flate.HuffmanOnly)
|
||||||
return compressedData.Bytes()
|
return compressedData.Bytes()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue