From aefdc03b0c8bfcc3a9a8b1d471c18306b231771a Mon Sep 17 00:00:00 2001 From: Antoine du Hamel Date: Thu, 7 Jan 2021 10:33:52 +0100 Subject: [PATCH] fixup! lib: remove use of array destructuring --- lib/internal/cluster/round_robin_handle.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/internal/cluster/round_robin_handle.js b/lib/internal/cluster/round_robin_handle.js index d892dcea13f7ba..778976210165a2 100644 --- a/lib/internal/cluster/round_robin_handle.js +++ b/lib/internal/cluster/round_robin_handle.js @@ -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;