Merge pull request #15118 from overleaf/jpa-mj-remove-promise

[web] remove access to uninitialized and unused promise variable

GitOrigin-RevId: a554511dc501f0af936ba0564fded40b62b87660
This commit is contained in:
Jakob Ackermann 2023-10-13 10:31:37 +02:00 committed by Copybot
parent d4a271b898
commit 6212b352fb

View file

@ -9,7 +9,6 @@ import { EditorState } from '@codemirror/state'
type UpTo = number | ((view: EditorView) => number)
type ParserWait = {
promise: Promise<void>
upTo?: UpTo
resolve: () => void
}
@ -33,7 +32,6 @@ export const parserWatcher = ViewPlugin.fromClass(
wait(upTo?: UpTo) {
const promise = new Promise<void>(resolve => {
const wait = {
promise,
upTo,
resolve,
}