Skip to content

Commit fcfe977

Browse files
gurgundayUzlopak
andauthored
push it to the extreme
Co-authored-by: Aras Abbasi <[email protected]>
1 parent abfe3f0 commit fcfe977

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/internal/fixed_queue.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,8 +122,7 @@ module.exports = class FixedQueue {
122122
} else {
123123
nextBuf = new FixedCircularBuffer();
124124
}
125-
head = head.next = nextBuf;
126-
this.head = head;
125+
this.head = head = head.next = nextBuf;
127126
}
128127
head.push(data);
129128
}

0 commit comments

Comments
 (0)