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 BethGriggs committed Apr 28, 2020
1 parent d82c3c2 commit 737bd62
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 737bd62

Please sign in to comment.