mirror of
https://github.com/minio/minio.git
synced 2025-11-09 13:39:46 -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
@@ -95,13 +95,7 @@ func checkSufficientDisks(disks []string) error {
|
||||
|
||||
// isDiskFound - validates if the disk is found in a list of input disks.
|
||||
func isDiskFound(disk string, disks []string) bool {
|
||||
for _, d := range disks {
|
||||
// Disk found return
|
||||
if disk == d {
|
||||
return true
|
||||
}
|
||||
}
|
||||
return false
|
||||
return contains(disks, disk)
|
||||
}
|
||||
|
||||
// newXLObjects - initialize new xl object layer.
|
||||
|
||||
Reference in New Issue
Block a user