mirror of
https://github.com/minio/minio.git
synced 2025-11-09 21:49:46 -05:00
fix: [minor] Avoid unnecessary typecasting. (#4828)
We don't need to typecast identifiers from their base to type to same type again. This is not a bug and compiler is fine to skip it but it is better to avoid if not needed.
This commit is contained in:
committed by
Dee Koder
parent
7505bac037
commit
2e6ee68409
@@ -571,7 +571,7 @@ func (xl xlObjects) PutObject(bucket string, object string, size int64, data io.
|
||||
|
||||
// Should return IncompleteBody{} error when reader has fewer bytes
|
||||
// than specified in request header.
|
||||
if file.Size < int64(curPartSize) {
|
||||
if file.Size < curPartSize {
|
||||
return ObjectInfo{}, traceError(IncompleteBody{})
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user