From: Jérôme Benoit Date: Thu, 4 May 2023 22:41:18 +0000 (+0200) Subject: docs: fix queue code comment X-Git-Tag: v2.4.12~19 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=c318eb2fef152bf66b27694ccd5ccfd83d20d10d;p=poolifier.git docs: fix queue code comment Signed-off-by: Jérôme Benoit --- diff --git a/src/queue.ts b/src/queue.ts index a2a61381..ab606547 100644 --- a/src/queue.ts +++ b/src/queue.ts @@ -41,8 +41,7 @@ export class Queue { /** * Dequeue an item. * - * @returns The dequeued item. - * @returns `undefined` if the queue is empty. + * @returns The dequeued item or `undefined` if the queue is empty. */ public dequeue (): T | undefined { if (this.size <= 0) return undefined