Open
Description
The only line in the project that is "partially covered" is line 37 in priority-queue.ts
:
p-queue/source/priority-queue.ts
Lines 35 to 38 in 0131f7f
This (and the method definition) seem to say that dequeue
may return undefined
, but when dequeue
is actually used this is not the case (because the queue size is checked earlier in that method):
Line 168 in 4b4d2fa
I'm not sure the best way to resolve this so created an issue about it instead. Would dequeue
ever be expected to return undefined
under normal usage? If not, should its result ever be undefined
?
Metadata
Metadata
Assignees
Labels
No labels