Skip to content

Commit 237e479

Browse files
oyenamitrvagg
authored andcommitted
test: change anonymous closure functions to arrow functions
PR-URL: #24418 Reviewed-By: Ouyang Yadong <oyydoibh@gmail.com> Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
1 parent 21e59a6 commit 237e479

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/parallel/test-http-res-write-end-dont-take-array.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -62,10 +62,10 @@ server.once('request', common.mustCall((req, res) => {
6262

6363
server.listen(0, function() {
6464
// just make a request, other tests handle responses
65-
http.get({ port: this.address().port }, function(res) {
65+
http.get({ port: this.address().port }, (res) => {
6666
res.resume();
6767
// do it again to test .end(Buffer);
68-
http.get({ port: server.address().port }, function(res) {
68+
http.get({ port: server.address().port }, (res) => {
6969
res.resume();
7070
server.close();
7171
});

0 commit comments

Comments
 (0)