Skip to content

Commit

Permalink
lib: unnecessary const assignment for class
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
yashLadha authored and targos committed May 13, 2020
1 parent 846d7bd commit 4dba3fc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/internal/fixed_queue.js
Expand Up @@ -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;
Expand Down Expand Up @@ -85,7 +85,7 @@ const FixedCircularBuffer = class FixedCircularBuffer {
this.bottom = (this.bottom + 1) & kMask;
return nextItem;
}
};
}

module.exports = class FixedQueue {
constructor() {
Expand Down

0 comments on commit 4dba3fc

Please sign in to comment.