mirror of
https://github.com/pgsty/minio.git
synced 2026-08-08 23:33:30 +03:00
Code cleanup - simplify server side code. (#3870)
Fix all the issues reported by `gosimple` tool.
This commit is contained in:
+1
-6
@@ -161,12 +161,7 @@ func newXLObjects(storageDisks []StorageAPI) (ObjectLayer, error) {
|
||||
xl.writeQuorum = writeQuorum
|
||||
|
||||
// Do a quick heal on the buckets themselves for any discrepancies.
|
||||
if err := quickHeal(xl.storageDisks, xl.writeQuorum, xl.readQuorum); err != nil {
|
||||
return xl, err
|
||||
}
|
||||
|
||||
// Return successfully initialized object layer.
|
||||
return xl, nil
|
||||
return xl, quickHeal(xl.storageDisks, xl.writeQuorum, xl.readQuorum)
|
||||
}
|
||||
|
||||
// Shutdown function for object storage interface.
|
||||
|
||||
Reference in New Issue
Block a user