Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYash Ladha <yashladhapankajladha123@gmail.com>2020-04-21 07:59:07 +0300
committerAndrey Pechkurov <apechkurov@gmail.com>2020-04-24 22:53:36 +0300
commit0d7638e2cccd4fc6e0fda99c15b66c5491c4b393 (patch)
tree9bea78ffcd3b1de28ee2f67545f36b8ce112fd74 /lib/internal/fixed_queue.js
parent1b2988a5da964f23c7de2fb6508791f81948d2da (diff)
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>
Diffstat (limited to 'lib/internal/fixed_queue.js')
-rw-r--r--lib/internal/fixed_queue.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/internal/fixed_queue.js b/lib/internal/fixed_queue.js
index d3ffbc2a1e1..f6f3110d8ec 100644
--- a/lib/internal/fixed_queue.js
+++ b/lib/internal/fixed_queue.js
@@ -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() {