From 4dba3fcafd45c9a416f3010bca9a870c08d88643 Mon Sep 17 00:00:00 2001 From: Yash Ladha Date: Tue, 21 Apr 2020 10:29:07 +0530 Subject: [PATCH] lib: unnecessary const assignment for class PR-URL: https://github.com/nodejs/node/pull/32962 Reviewed-By: Luigi Pinca Reviewed-By: James M Snell Reviewed-By: Andrey Pechkurov --- lib/internal/fixed_queue.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/internal/fixed_queue.js b/lib/internal/fixed_queue.js index d3ffbc2a1e154e..f6f3110d8ec5d4 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() {