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:
Yash Ladha authored and Ruben Bridgewater committed 2020-04-28 13:58:23 +02:00
1 parent bd096bd8da
commit d178250bb6
1 file changed
+2 -2
+2 -2
View File
@@ -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() {