dgram: use for...of

PR-URL: https://github.com/nodejs/node/pull/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>
This commit is contained in:
Trivikram Kamat 2019-12-14 14:56:03 -05:00 committed by Kamat, Trivikram
parent c63d511c13
commit c68ecee6a9
1 changed files with 2 additions and 2 deletions

View File

@ -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) {