mirror of
https://github.com/pgsty/minio.git
synced 2026-07-20 20:50:22 +03:00
tests: Do not allow forced type asserts (#20905)
This commit is contained in:
+2
-2
@@ -2166,10 +2166,10 @@ func (s *xlStorage) writeAllDirect(ctx context.Context, filePath string, fileSiz
|
||||
var bufp *[]byte
|
||||
switch {
|
||||
case fileSize <= xioutil.SmallBlock:
|
||||
bufp = xioutil.ODirectPoolSmall.Get().(*[]byte)
|
||||
bufp = xioutil.ODirectPoolSmall.Get()
|
||||
defer xioutil.ODirectPoolSmall.Put(bufp)
|
||||
default:
|
||||
bufp = xioutil.ODirectPoolLarge.Get().(*[]byte)
|
||||
bufp = xioutil.ODirectPoolLarge.Get()
|
||||
defer xioutil.ODirectPoolLarge.Put(bufp)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user