Skip to content

Commit 9e459f3

Browse files
11rls11aduh95
authored andcommitted
test: convert for each to for of in test/parallel/test-net-server-close
Signed-off-by: 11rls11 <raymundo.lopzantiago@outlook.com> PR-URL: #67127 Reviewed-By: Ethan Arrowood <ethan@arrowood.dev> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
1 parent 2f79930 commit 9e459f3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎test/parallel/test-net-server-close.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ const server = net.createServer(common.mustCallAtLeast((c) => {
3333

3434
if (sockets.length === 2) {
3535
assert.strictEqual(server.close(), server);
36-
sockets.forEach((c) => c.destroy());
36+
for (const c of sockets) { c.destroy(); }
3737
}
3838
}));
3939

0 commit comments

Comments
 (0)