Ace2Inner: Inline code that is unnecessarily inside an IIFE

pull/5221/head
Richard Hansen 2021-03-21 17:57:32 -04:00
parent 4890cd8972
commit 788eb86d84
1 changed files with 17 additions and 19 deletions

View File

@ -1475,7 +1475,6 @@ function Ace2Inner(editorInfo, cssManagers) {
throw new Error(`doRepApplyChangeset length mismatch: ${errMsg}`);
}
((changes) => {
const editEvent = currentCallStack.editEvent;
if (editEvent.eventType === 'nonundoable') {
if (!editEvent.changeset) {
@ -1495,7 +1494,6 @@ function Ace2Inner(editorInfo, cssManagers) {
editEvent.backset = Changeset.compose(inverseChangeset, editEvent.backset, rep.apool);
}
}
})(changes);
Changeset.mutateAttributionLines(changes, rep.alines, rep.apool);