mirror of
https://github.com/pgsty/minio.git
synced 2026-07-23 06:00:24 +03: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
+2
-4
@@ -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