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 BridgeAR committed Jan 3, 2020
1 parent 37ffa8c commit 21ef3d6
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 21ef3d6

Please sign in to comment.