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 <jasnell@gmail.com>
Reviewed-By: Yuta Hiroto <hello@hiroppy.me>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Rich Trott <rtrott@gmail.com>
  • 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
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.