Skip to content

Commit

Permalink
remove redundant array assignments (#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
yurivish authored Mar 28, 2022
1 parent 3beaeb1 commit 61bf898
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@ export default class FlatQueue {

push(id, value) {
let pos = this.length++;
this.ids[pos] = id;
this.values[pos] = value;

while (pos > 0) {
const parent = (pos - 1) >> 1;
Expand Down

0 comments on commit 61bf898

Please sign in to comment.