Fixes the if condition when uploads.json file cannot be found (#4883)

This commit is contained in:
ebozduman 2017-09-14 18:09:12 -05:00 committed by Dee Koder
parent 9925640da8
commit b74ef6d5f4

View file

@ -43,7 +43,7 @@ func (fs fsObjects) isMultipartUpload(bucket, prefix string) bool {
uploadsIDPath := pathJoin(fs.fsPath, bucket, prefix, uploadsJSONFile)
_, err := fsStatFile(uploadsIDPath)
if err != nil {
if err == errFileNotFound {
if errorCause(err) == errFileNotFound {
return false
}
errorIf(err, "Unable to access uploads.json "+uploadsIDPath)