From 6212b352fbe6b6c63734fcb6528f6875509cdcac Mon Sep 17 00:00:00 2001 From: Jakob Ackermann Date: Fri, 13 Oct 2023 10:31:37 +0200 Subject: [PATCH] Merge pull request #15118 from overleaf/jpa-mj-remove-promise [web] remove access to uninitialized and unused promise variable GitOrigin-RevId: a554511dc501f0af936ba0564fded40b62b87660 --- .../js/features/source-editor/extensions/wait-for-parser.ts | 2 -- 1 file changed, 2 deletions(-) diff --git a/services/web/frontend/js/features/source-editor/extensions/wait-for-parser.ts b/services/web/frontend/js/features/source-editor/extensions/wait-for-parser.ts index 95036edd8e..8419bb3beb 100644 --- a/services/web/frontend/js/features/source-editor/extensions/wait-for-parser.ts +++ b/services/web/frontend/js/features/source-editor/extensions/wait-for-parser.ts @@ -9,7 +9,6 @@ import { EditorState } from '@codemirror/state' type UpTo = number | ((view: EditorView) => number) type ParserWait = { - promise: Promise upTo?: UpTo resolve: () => void } @@ -33,7 +32,6 @@ export const parserWatcher = ViewPlugin.fromClass( wait(upTo?: UpTo) { const promise = new Promise(resolve => { const wait = { - promise, upTo, resolve, }