Skip to content

Commit

Permalink
fixup! lib: remove use of array destructuring
Browse files Browse the repository at this point in the history
  • Loading branch information
aduh95 committed Jan 7, 2021
1 parent e96ac81 commit aefdc03
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/internal/cluster/round_robin_handle.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,8 @@ RoundRobinHandle.prototype.remove = function(worker) {

RoundRobinHandle.prototype.distribute = function(err, handle) {
ArrayPrototypePush(this.handles, handle);
const { 0: workerEntry } = this.free;
// eslint-disable-next-line node-core/no-array-destructuring
const [ workerEntry ] = this.free; // this.free is a SafeMap

if (ArrayIsArray(workerEntry)) {
const { 0: workerId, 1: worker } = workerEntry;
Expand Down

0 comments on commit aefdc03

Please sign in to comment.