Skip to content

Commit aefdc03

Browse files
committed
fixup! lib: remove use of array destructuring
1 parent e96ac81 commit aefdc03

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/internal/cluster/round_robin_handle.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,8 @@ RoundRobinHandle.prototype.remove = function(worker) {
9393

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

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

0 commit comments

Comments
 (0)