mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-06-06 23:59:01 +02:00
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:
@@ -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,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user