Skip to content

Commit ee3c461

Browse files
yashLadhaBridgeAR
authored andcommitted
lib: unnecessary const assignment for class
PR-URL: #32962 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Andrey Pechkurov <apechkurov@gmail.com>
1 parent d3f65e8 commit ee3c461

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎lib/internal/fixed_queue.js‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ const kMask = kSize - 1;
5656
// `top + 1 === bottom` it's full. This wastes a single space of storage
5757
// but allows much quicker checks.
5858

59-
constFixedCircularBuffer=classFixedCircularBuffer{
59+
classFixedCircularBuffer{
6060
constructor(){
6161
this.bottom=0;
6262
this.top=0;
@@ -85,7 +85,7 @@ const FixedCircularBuffer = class FixedCircularBuffer {
8585
this.bottom=(this.bottom+1)&kMask;
8686
returnnextItem;
8787
}
88-
};
88+
}
8989

9090
module.exports=classFixedQueue{
9191
constructor(){

0 commit comments

Comments
 (0)