From 571426bdcb303b5075e5b08d9e1458243c156043 Mon Sep 17 00:00:00 2001 From: Marijn Haverbeke Date: Fri, 19 Apr 2024 14:27:18 +0200 Subject: [PATCH] Remove some superfluous exclamation marks --- src/domobserver.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/domobserver.ts b/src/domobserver.ts index e4a3888..d96776b 100644 --- a/src/domobserver.ts +++ b/src/domobserver.ts @@ -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()) }} } @@ -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