Skip to content

Commit

Permalink
test: change anonymous closure functions to arrow functions
Browse files Browse the repository at this point in the history
PR-URL: nodejs#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>
  • Loading branch information
oyenamit authored and Trott committed Nov 19, 2018
1 parent 278126c commit e25e8b6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/parallel/test-http-res-write-end-dont-take-array.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,10 @@ server.once('request', common.mustCall((req, res) => {

server.listen(0, function() {
// just make a request, other tests handle responses
http.get({ port: this.address().port }, function(res) {
http.get({ port: this.address().port }, (res) => {
res.resume();
// do it again to test .end(Buffer);
http.get({ port: server.address().port }, function(res) {
http.get({ port: server.address().port }, (res) => {
res.resume();
server.close();
});
Expand Down

0 comments on commit e25e8b6

Please sign in to comment.