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: #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 codebytere committed Jan 13, 2019
1 parent 9967d0f commit 658bc9f
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 658bc9f

Please sign in to comment.