Remove redundant null check in insertText #26

Merged
ocavue merged 1 commit from ocavue/remove-duplicate-code into master 2024-12-20 15:17:32 +01:00
ocavue commented 2024-12-20 14:52:38 +01:00 (Migrated from github.com)

The following two lines have duplicated functionality. I removed one of them.

      if (to == null) to = from
      to = to == null ? from : to
The following two lines have duplicated functionality. I removed one of them. ``` if (to == null) to = from to = to == null ? from : to ```
marijnh commented 2024-12-20 15:17:39 +01:00 (Migrated from github.com)

Thanks for spotting that.

Thanks for spotting that.
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
prosemirror/prosemirror-state!26
No description provided.