Skip to content

Commit 1962c7c

Browse files
himadrigangulydanielleadams
authored andcommitted
test: convert anonymous function to arrow function
PR-URL: #39604 Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Zijian Liu <lxxyxzj@gmail.com>
1 parent 9e38fc6 commit 1962c7c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/parallel/test-http-write-head-2.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ const http = require('http');
2929
res.end();
3030
}));
3131

32-
server.listen(0, common.mustCall(function() {
32+
server.listen(0, common.mustCall(() => {
3333
http.get({ port: server.address().port }, common.mustCall((res) => {
3434
assert.strictEqual(res.headers.test, '1');
3535
assert.strictEqual(res.headers.test2, '2');
@@ -51,7 +51,7 @@ const http = require('http');
5151
res.end();
5252
}));
5353

54-
server.listen(0, common.mustCall(function() {
54+
server.listen(0, common.mustCall(() => {
5555
http.get({ port: server.address().port }, common.mustCall((res) => {
5656
res.resume().on('end', common.mustCall(() => {
5757
server.close();

0 commit comments

Comments
 (0)