File tree 3 files changed +3
-3
lines changed
3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ class QueueNode {
5
5
6
6
constructor ( { size } ) {
7
7
this . size = size ;
8
- this . buffer = new Array ( size ) . fill ( null ) ;
8
+ this . buffer = new Array ( size ) ;
9
9
this . reset ( ) ;
10
10
}
11
11
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ class CircularQueueNode {
5
5
6
6
constructor ( { size } ) {
7
7
this . size = size ;
8
- this . buffer = new Array ( size ) . fill ( null ) ;
8
+ this . buffer = new Array ( size ) ;
9
9
this . readIndex = 0 ;
10
10
this . writeIndex = 0 ;
11
11
this . next = null ;
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ class CircularQueueNode {
5
5
6
6
constructor ( { size } ) {
7
7
this . size = size ;
8
- this . buffer = new Array ( size ) . fill ( null ) ;
8
+ this . buffer = new Array ( size ) ;
9
9
this . readIndex = 0 ;
10
10
this . writeIndex = 0 ;
11
11
this . next = null ;
You can’t perform that action at this time.
0 commit comments