mirror of
https://github.com/minio/minio.git
synced 2025-11-11 06:20:14 -05:00
vendor: update reedsolomon package with new perm improvements. (#1422)
This commit is contained in:
5
vendor/github.com/klauspost/reedsolomon/matrix.go
generated
vendored
5
vendor/github.com/klauspost/reedsolomon/matrix.go
generated
vendored
@@ -178,10 +178,7 @@ func (m matrix) SwapRows(r1, r2 int) error {
|
||||
// IsSquare will return true if the matrix is square
|
||||
// and nil if the matrix is square
|
||||
func (m matrix) IsSquare() bool {
|
||||
if len(m) != len(m[0]) {
|
||||
return false
|
||||
}
|
||||
return true
|
||||
return len(m) == len(m[0])
|
||||
}
|
||||
|
||||
// errSingular is returned if the matrix is singular and cannot be inversed
|
||||
|
||||
Reference in New Issue
Block a user