Skip to content

Commit 4947c9a

Browse files
committed
fix: remove null check for lineLength
It is `number`
1 parent dd61b8a commit 4947c9a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/adapters/apply-edit-adapter.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ export default class ApplyEditAdapter {
9090
const startRow = edit.oldRange.start.row
9191
const startCol = edit.oldRange.start.column
9292
const lineLength = buffer.lineLengthForRow(startRow)
93-
if (lineLength == null || startCol > lineLength) {
93+
if (startCol > lineLength) {
9494
throw Error(`Out of range edit on ${path}:${startRow + 1}:${startCol + 1}`)
9595
}
9696
}

0 commit comments

Comments
 (0)