mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-17 23:26:02 +00:00
Queue: Use shift() instead of splice
This commit is contained in:
1 parent
b003ba472a
commit
762d02e40e
1 file changed
+1
-1
@@ -117,7 +117,7 @@ class Queue {
|
||||
this._subscribers[queueName].forEach((subscribeHandler) =>
|
||||
subscribeHandler(this._queues[queueName][0]),
|
||||
);
|
||||
this._queues[queueName].splice(0, 1);
|
||||
this._queues[queueName].shift();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user