mirror of
https://github.com/minio/minio.git
synced 2025-03-28 00:10:57 -04:00
Merge pull request #1181 from hackintoshrao/vet-shadow-fix
build: Removing error initialization to solve variable shadowing
This commit is contained in:
commit
d7767d6431
@ -491,7 +491,7 @@ func (fs Filesystem) CompleteMultipartUpload(bucket, object, uploadID string, da
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
completeMultipartUpload := &CompleteMultipartUpload{}
|
completeMultipartUpload := &CompleteMultipartUpload{}
|
||||||
if e := xml.Unmarshal(partBytes, completeMultipartUpload); e != nil {
|
if e = xml.Unmarshal(partBytes, completeMultipartUpload); e != nil {
|
||||||
file.CloseAndPurge()
|
file.CloseAndPurge()
|
||||||
return ObjectMetadata{}, probe.NewError(MalformedXML{})
|
return ObjectMetadata{}, probe.NewError(MalformedXML{})
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user