mirror of
https://github.com/minio/minio.git
synced 2026-02-05 02:10:14 -05:00
add ruleguard support, fix all the reported issues (#10335)
This commit is contained in:
@@ -158,8 +158,8 @@ func calculateStreamContentLength(dataLen, chunkSize int64) int64 {
|
||||
if dataLen <= 0 {
|
||||
return 0
|
||||
}
|
||||
chunksCount := int64(dataLen / chunkSize)
|
||||
remainingBytes := int64(dataLen % chunkSize)
|
||||
chunksCount := dataLen / chunkSize
|
||||
remainingBytes := dataLen % chunkSize
|
||||
var streamLen int64
|
||||
streamLen += chunksCount * calculateSignedChunkLength(chunkSize)
|
||||
if remainingBytes > 0 {
|
||||
|
||||
Reference in New Issue
Block a user