Skip to content

Commit 737bd62

Browse files
yashLadhaBethGriggs
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 d82c3c2 commit 737bd62

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/internal/fixed_queue.js

+2-2
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-
const FixedCircularBuffer = class FixedCircularBuffer {
59+
class FixedCircularBuffer {
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
return nextItem;
8787
}
88-
};
88+
}
8989

9090
module.exports = class FixedQueue {
9191
constructor() {

0 commit comments

Comments
 (0)