File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed
Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -59,6 +59,7 @@ export abstract class AbstractFixedQueue<T> implements IFixedQueue<T> {
5959
6060 /** @inheritdoc */
6161 public delete ( data : T ) : boolean {
62+ if ( this . empty ( ) ) return false
6263 let currentPhysicalIndex = this . start
6364 let logicalIndex = - 1
6465 for ( let i = 0 ; i < this . size ; i ++ ) {
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ export class FixedPriorityQueue<T> extends AbstractFixedQueue<T>
1414 /**
1515 * Constructs a FixedPriorityQueue.
1616 * @param size - Fixed queue size. @defaultValue defaultQueueSize
17- * @param agingFactor - Aging factor to apply to items in priority points per millisecond. A higher value makes tasks age faster.
17+ * @param agingFactor - Aging factor to apply to items in priority points per millisecond. A higher value makes items age faster.
1818 * @returns IFixedQueue.
1919 */
2020 public constructor ( size ?: number , agingFactor = 0.001 ) {
You can’t perform that action at this time.
0 commit comments