vendor: update reedsolomon package with new perm improvements. (#1422)

This commit is contained in:
Harshavardhana
2016-04-29 14:59:03 -07:00
parent 4e34e03dd4
commit a9935f886c
3 changed files with 25 additions and 31 deletions

View File

@@ -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