mirror of
https://github.com/minio/minio.git
synced 2025-11-09 21:49:46 -05:00
Code cleanup - simplify server side code. (#3870)
Fix all the issues reported by `gosimple` tool.
This commit is contained in:
@@ -238,12 +238,9 @@ func saveFormatFS(formatPath string, fsFormat *formatConfigV1) error {
|
||||
}
|
||||
defer lk.Close()
|
||||
|
||||
if _, err = lk.Write(metadataBytes); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
_, err = lk.Write(metadataBytes)
|
||||
// Success.
|
||||
return nil
|
||||
return err
|
||||
}
|
||||
|
||||
// Return if the part info in uploadedParts and completeParts are same.
|
||||
|
||||
Reference in New Issue
Block a user