mirror of
https://github.com/overleaf/overleaf.git
synced 2025-01-11 16:24:42 +00: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:
parent
d4a271b898
commit
6212b352fb
1 changed files with 0 additions and 2 deletions
|
@ -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,
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue