diff options
author | Trivikram Kamat <16024985+trivikr@users.noreply.github.com> | 2019-12-14 22:56:03 +0300 |
---|---|---|
committer | Kamat, Trivikram <16024985+trivikr@users.noreply.github.com> | 2019-12-20 18:35:39 +0300 |
commit | c68ecee6a9b119dd17f5ada64c4e8dc85d384efb (patch) | |
tree | 8dea57ac27ebd549b8dec771c721a1942f7d5a00 /lib/dgram.js | |
parent | c63d511c137130030c263fb98d0d261105244c08 (diff) |
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>
Diffstat (limited to 'lib/dgram.js')
-rw-r--r-- | lib/dgram.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/dgram.js b/lib/dgram.js index 5f7e8f032cf..b17def6cec9 100644 --- a/lib/dgram.js +++ b/lib/dgram.js @@ -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) { |