mirror of
https://github.com/nodejs/node.git
synced 2026-11-26 21:58:26 -05:00
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:
1 parent
027a2dc3ec
commit
b7ff93f45d
1 file changed
+2
-2
+2
-2
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user