Skip to content

Commit

Permalink
fix: coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
TomerAberbach committed Apr 13, 2024
1 parent 88ddac4 commit 8de1bc5
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,8 @@ export class Queue {

const previousCapacity = this._data.length
this._data.length <<= 1

if (this._startIndex > 0) {
this._data.copyWithin(previousCapacity, 0, this._startIndex)
this._data.fill(undefined, 0, this._startIndex)
}
this._data.copyWithin(previousCapacity, 0, this._startIndex)
this._data.fill(undefined, 0, this._startIndex)
}

push(value) {
Expand Down

0 comments on commit 8de1bc5

Please sign in to comment.