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 committed Dec 20, 2019
1 parent c63d511 commit c68ecee
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 @@ -532,8 +532,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 c68ecee

Please sign in to comment.