mirror of
https://github.com/atom/atom.git
synced 2026-01-24 22:38:20 -05:00
Remove assertion since we call this with out of range rows legitimately
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user