mirror of
https://github.com/nodejs/node.git
synced 2026-11-27 17:52:27 -05:00
lib: unnecessary const assignment for class
PR-URL: https://github.com/nodejs/node/pull/32962 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Andrey Pechkurov <apechkurov@gmail.com>
This commit is contained in:
1 parent
bd096bd8da
commit
d178250bb6
1 file changed
+2
-2
@@ -56,7 +56,7 @@ const kMask = kSize - 1;
|
||||
// `top + 1 === bottom` it's full. This wastes a single space of storage
|
||||
// but allows much quicker checks.
|
||||
|
||||
const FixedCircularBuffer = class FixedCircularBuffer {
|
||||
class FixedCircularBuffer {
|
||||
constructor() {
|
||||
this.bottom = 0;
|
||||
this.top = 0;
|
||||
@@ -85,7 +85,7 @@ const FixedCircularBuffer = class FixedCircularBuffer {
|
||||
this.bottom = (this.bottom + 1) & kMask;
|
||||
return nextItem;
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
module.exports = class FixedQueue {
|
||||
constructor() {
|
||||
|
||||
Reference in new issue
Block a user