mirror of
https://github.com/minio/minio.git
synced 2025-11-09 05:34:56 -05:00
Code cleanup - simplify server side code. (#3870)
Fix all the issues reported by `gosimple` tool.
This commit is contained in:
@@ -1690,9 +1690,7 @@ func removeDiskN(disks []string, n int) {
|
||||
// Makes a entire new copy of a StorageAPI slice.
|
||||
func deepCopyStorageDisks(storageDisks []StorageAPI) []StorageAPI {
|
||||
newStorageDisks := make([]StorageAPI, len(storageDisks))
|
||||
for i, disk := range storageDisks {
|
||||
newStorageDisks[i] = disk
|
||||
}
|
||||
copy(newStorageDisks, storageDisks)
|
||||
return newStorageDisks
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user