Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Update lib/internal/cluster/primary.js
Co-authored-by: Antoine du Hamel <duhamelantoine1995@gmail.com>
  • Loading branch information
jerome-benoit and aduh95 authored May 11, 2024
commit 6950c593ac11c26033e81f45846e4576b3dfc77a
3 changes: 1 addition & 2 deletions lib/internal/cluster/primary.js
Original file line number Diff line number Diff line change
Expand Up @@ -152,8 +152,7 @@ function removeWorker(worker) {
function removeHandlesForWorker(worker) {
assert(worker);

// eslint-disable-next-line node-core/no-array-destructuring
for (const [key, handle] of handles) {
for (const { 0: key, 1: handle } of handles) {
if (handle.remove(worker))
handles.delete(key);
}
Expand Down