[skip ci] Re-add removed lint rules

This commit is contained in:
schroda
2026-03-14 02:10:25 +01:00
parent 0a643655ad
commit 80829febb2
10 changed files with 18 additions and 16 deletions

View File

@@ -79,9 +79,9 @@ export class Queue {
}
private getNextItemToProcess<T>(): { key: Key; fn: QueueItemFunction<T>; promise: ControlledPromise<T> } {
const [key] = [...this.pendingKeyToPriorityMap.entries()].toSorted(
const [[key]] = [...this.pendingKeyToPriorityMap.entries()].toSorted(
([, priorityA], [, priorityB]) => priorityB - priorityA,
)[0];
);
const fn = this.pendingKeyToFnMap.get(key) as () => PromiseLike<T> | T;
const promise = this.pendingKeyToPromiseMap.get(key) as ControlledPromise<T>;