Merge pull request #1181 from hackintoshrao/vet-shadow-fix

build: Removing error initialization to solve variable shadowing
This commit is contained in:
Harshavardhana 2016-03-01 21:26:15 -08:00
commit d7767d6431
1 changed files with 1 additions and 1 deletions

View File

@ -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{})
}