Skip to content

Commit 4425926

Browse files
oyenamitcodebytere
authored andcommitted
test: change anonymous closure functions to arrow functions
PR-URL: #24418 Reviewed-By: Ouyang Yadong <[email protected]> Reviewed-By: Michaël Zasso <[email protected]> Reviewed-By: Gireesh Punathil <[email protected]> Reviewed-By: Trivikram Kamat <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: James M Snell <[email protected]>
1 parent 5c3736a commit 4425926

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)