Remove assertion since we call this with out of range rows legitimately

This commit is contained in:
Nathan Sobo
2015-07-09 00:28:46 -05:00
parent de8d1d95d8
commit 587e898867

View File

@@ -369,9 +369,6 @@ class TokenizedBuffer extends Model
tokenizedLineForRow: (bufferRow) ->
if 0 <= bufferRow < @tokenizedLines.length
@tokenizedLines[bufferRow] ?= @buildPlaceholderTokenizedLineForRow(bufferRow)
else
atom.assert false, "Requested tokenized line with out of range buffer row", (error) =>
error.metadata = {bufferRow, maxBufferRow: @tokenizedLines.length}
tokenizedLinesForRows: (startRow, endRow) ->
for row in [startRow..endRow] by 1