mirror of
https://github.com/minio/minio.git
synced 2025-11-06 20:33:07 -05:00
minor cleanup
- Reused contains() from utils.go at a couple of places - Cleanup in return statements and boolean checks
This commit is contained in:
committed by
Harshavardhana
parent
ec4260d260
commit
418921de89
@@ -107,10 +107,8 @@ func newPosix(diskPath string) (StorageAPI, error) {
|
||||
if err != nil {
|
||||
if os.IsNotExist(err) {
|
||||
// Disk not found create it.
|
||||
if err = os.MkdirAll(diskPath, 0777); err != nil {
|
||||
return fs, err
|
||||
}
|
||||
return fs, nil
|
||||
err = os.MkdirAll(diskPath, 0777)
|
||||
return fs, err
|
||||
}
|
||||
return fs, err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user