We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e96ac81 commit aefdc03Copy full SHA for aefdc03
lib/internal/cluster/round_robin_handle.js
@@ -93,7 +93,8 @@ RoundRobinHandle.prototype.remove = function(worker) {
93
94
RoundRobinHandle.prototype.distribute = function(err, handle) {
95
ArrayPrototypePush(this.handles, handle);
96
- const { 0: workerEntry } = this.free;
+ // eslint-disable-next-line node-core/no-array-destructuring
97
+ const [ workerEntry ] = this.free; // this.free is a SafeMap
98
99
if (ArrayIsArray(workerEntry)) {
100
const { 0: workerId, 1: worker } = workerEntry;
0 commit comments