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 <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Andrey Pechkurov <[email protected]>
  • Loading branch information
yashLadha authored and puzpuzpuz committed Apr 24, 2020
1 parent 1b2988a commit 0d7638e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/internal/fixed_queue.js
Original file line number Diff line number Diff line change
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 0d7638e

Please sign in to comment.