Skip to content

Commit 334fcbe

Browse files
trivikrtargos
authored andcommitted
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 73701b2 commit 334fcbe

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
@@ -527,8 +527,8 @@ function clearQueue() {
527527
state.queue = undefined;
528528

529529
// Flush the send queue.
530-
for (let i = 0; i < queue.length; i++)
531-
queue[i]();
530+
for (const queueEntry of queue)
531+
queueEntry();
532532
}
533533

534534
function isConnected(self) {

0 commit comments

Comments
 (0)