mirror of https://github.com/nodejs/node.git
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:
parent
c63d511c13
commit
c68ecee6a9
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue