Skip to content

Commit

Permalink
Squishing a typo bug before it causes real harm
Browse files Browse the repository at this point in the history
in updateNumRows method in RowMatrix

Author: Doris Xin <doris.s.xin@gmail.com>

Closes apache#1125 from dorx/updateNumRows and squashes the following commits:

8564aef [Doris Xin] Squishing a typo bug before it causes real harm
  • Loading branch information
dorx authored and conviva-zz committed Sep 4, 2014
1 parent 9d9ed2b commit 36ac612
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -419,7 +419,7 @@ class RowMatrix(
/** Updates or verifies the number of rows. */
private def updateNumRows(m: Long) {
if (nRows <= 0) {
nRows == m
nRows = m
} else {
require(nRows == m,
s"The number of rows $m is different from what specified or previously computed: ${nRows}.")
Expand Down

0 comments on commit 36ac612

Please sign in to comment.