Skip to content

Commit

Permalink
fix linter
Browse files Browse the repository at this point in the history
  • Loading branch information
jhchen committed Aug 24, 2021
1 parent 99bfdcd commit 7e98bc2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class Editor {
if (op.insert != null) {
deleteDelta.retain(length);
if (typeof op.insert === 'string') {
let text = op.insert;
const text = op.insert;
addedNewline =
!text.endsWith('\n') &&
(scrollLength <= index ||
Expand Down

0 comments on commit 7e98bc2

Please sign in to comment.