mirror of
https://github.com/minio/minio.git
synced 2025-11-07 12:52:58 -05:00
Run modernize (#21546)
`go run golang.org/x/tools/gopls/internal/analysis/modernize/cmd/modernize@latest -fix -test ./...` executed. `go generate ./...` ran afterwards to keep generated.
This commit is contained in:
@@ -180,10 +180,7 @@ func (api objectAPIHandlers) getObjectInArchiveFileHandler(ctx context.Context,
|
||||
if file.UncompressedSize64 > 0 {
|
||||
// There may be number of header bytes before the content.
|
||||
// Reading 64K extra. This should more than cover name and any "extra" details.
|
||||
end := file.Offset + int64(file.CompressedSize64) + 64<<10
|
||||
if end > zipObjInfo.Size {
|
||||
end = zipObjInfo.Size
|
||||
}
|
||||
end := min(file.Offset+int64(file.CompressedSize64)+64<<10, zipObjInfo.Size)
|
||||
rs := &HTTPRangeSpec{Start: file.Offset, End: end}
|
||||
gr, err := objectAPI.GetObjectNInfo(ctx, bucket, zipPath, rs, nil, opts)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user