Skip to content

Commit cbffa1a

Browse files
SergioCalderon101aduh95
authored andcommitted
test: replace for each with for of
Signed-off-by: Sergio Calderon <sergioo.calderonn@gmail.com> PR-URL: #67122 Reviewed-By: Ethan Arrowood <ethan@arrowood.dev> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
1 parent ed3bb85 commit cbffa1a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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

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

1313
if (sockets.length === 2) {
1414
assert.strictEqual(server.close(), server);
15-
sockets.forEach((c) => c.resetAndDestroy());
15+
for (const c of sockets) c.resetAndDestroy();
1616
}
1717
}));
1818

0 commit comments

Comments
 (0)