Skip to content

Commit

Permalink
dgram: use for...of
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
trivikr authored and BethGriggs committed Feb 6, 2020
1 parent 027a2dc commit b7ff93f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/dgram.js
Original file line number Diff line number Diff line change
Expand Up @@ -527,8 +527,8 @@ function clearQueue() {
state.queue = undefined;

// Flush the send queue.
for (let i = 0; i < queue.length; i++)
queue[i]();
for (const queueEntry of queue)
queueEntry();
}

function isConnected(self) {
Expand Down

0 comments on commit b7ff93f

Please sign in to comment.