mirror of
https://github.com/minio/minio.git
synced 2026-11-19 23:03:17 +00: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:
1 parent
ec4260d260
commit
418921de89
10 files changed
+20
-51
No files matched your search
@@ -112,7 +112,7 @@ func testGetReadDisks(t *testing.T, xl xlObjects) {
|
||||
t.Errorf("test-case %d - expected nextIndex: %d, got : %d", i+1, test.nextIndex, nextIndex)
|
||||
continue
|
||||
}
|
||||
if reflect.DeepEqual(test.retDisks, disks) == false {
|
||||
if !reflect.DeepEqual(test.retDisks, disks) {
|
||||
t.Errorf("test-case %d : incorrect disks returned. expected %+v, got %+v", i+1, test.retDisks, disks)
|
||||
continue
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user