Skip to content

Commit

Permalink
Remove some superfluous exclamation marks
Browse files Browse the repository at this point in the history
  • Loading branch information
marijnh committed Apr 19, 2024
1 parent df2cb96 commit 571426b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/domobserver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -586,10 +586,10 @@ class EditContextManager {
})

this.measureReq = {read: view => {
this.editContext!.updateControlBounds(view.contentDOM.getBoundingClientRect())
this.editContext.updateControlBounds(view.contentDOM.getBoundingClientRect())
let sel = getSelection(view.root)
if (sel && sel.rangeCount)
this.editContext!.updateSelectionBounds(sel.getRangeAt(0).getBoundingClientRect())
this.editContext.updateSelectionBounds(sel.getRangeAt(0).getBoundingClientRect())
}}
}

Expand Down Expand Up @@ -618,7 +618,7 @@ class EditContextManager {
abort = true
return
}
this.editContext!.updateText(this.toContextPos(fromA), this.toContextPos(toA), insert.toString())
this.editContext.updateText(this.toContextPos(fromA), this.toContextPos(toA), insert.toString())
this.to += dLen
}
off += dLen
Expand Down

0 comments on commit 571426b

Please sign in to comment.