Skip to content

Commit c68ecee

Browse files
committed
dgram: use for...of
PR-URL: #30999 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Yuta Hiroto <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]> Reviewed-By: Rich Trott <[email protected]>
1 parent c63d511 commit c68ecee

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/dgram.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -532,8 +532,8 @@ function clearQueue() {
532532
state.queue = undefined;
533533

534534
// Flush the send queue.
535-
for (let i = 0; i < queue.length; i++)
536-
queue[i]();
535+
for (const queueEntry of queue)
536+
queueEntry();
537537
}
538538

539539
function isConnected(self) {

0 commit comments

Comments
 (0)