Skip to content

Commit

Permalink
fix #61 (#62)
Browse files Browse the repository at this point in the history
Co-authored-by: someone <someone@somewhere.somewhere>
  • Loading branch information
zkx5xkt and someone authored Jan 3, 2023
1 parent 8fd7a02 commit d3525ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,6 @@ Queue.prototype.push = function (value) {

Queue.prototype.shift = function () {
if (this._shiftIndex === blockSize) {
this._shiftIndex = 0;
var s2 = this._s2;
if (s2.length === 0) {
var s1 = this._s1;
Expand All @@ -131,6 +130,7 @@ Queue.prototype.shift = function () {
this._s1 = s2;
s2 = this._s2 = s1.reverse();
}
this._shiftIndex = 0;
this._shiftBlock = s2.pop();
}
if (
Expand Down

0 comments on commit d3525ae

Please sign in to comment.