Skip to content

Commit

Permalink
dgram: use for...of
Browse files Browse the repository at this point in the history
  • Loading branch information
trivikr committed Dec 17, 2019
1 parent 7f536f2 commit 94f2718
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/dgram.js
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 94f2718

Please sign in to comment.