mirror of
https://github.com/minio/minio.git
synced 2026-11-12 14:41:20 +00:00
go vet shadow error patch
This commit is contained in:
1 parent
dc622674e1
commit
6651f5b368
1 file changed
+1
-1
@@ -491,7 +491,7 @@ func (fs Filesystem) CompleteMultipartUpload(bucket, object, uploadID string, da
|
||||
}
|
||||
}
|
||||
completeMultipartUpload := &CompleteMultipartUpload{}
|
||||
if e := xml.Unmarshal(partBytes, completeMultipartUpload); e != nil {
|
||||
if e = xml.Unmarshal(partBytes, completeMultipartUpload); e != nil {
|
||||
file.CloseAndPurge()
|
||||
return ObjectMetadata{}, probe.NewError(MalformedXML{})
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user