mirror of
https://github.com/minio/minio.git
synced 2025-11-08 21:24:55 -05:00
Remove the redundant conditional in the validateParity function (#16866)
This commit is contained in:
@@ -204,7 +204,7 @@ func validateParity(ssParity, rrsParity, setDriveCount int) (err error) {
|
||||
}
|
||||
|
||||
if ssParity > 0 && rrsParity > 0 {
|
||||
if ssParity > 0 && ssParity < rrsParity {
|
||||
if ssParity < rrsParity {
|
||||
return fmt.Errorf("Standard storage class parity drives %d should be greater than or equal to Reduced redundancy storage class parity drives %d", ssParity, rrsParity)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user