Skip to content

Commit 8c06e2f

Browse files
deokjinkimjuanarbol
authored andcommitted
http: replace var with const on code of comment
`const` or `let` is more preferred than `var` except iteration. PR-URL: #45951 Reviewed-By: Paolo Insogna <paolo@cowtech.it> Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: theanarkh <theratliter@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Zeyu "Alex" Yang <himself65@outlook.com> Reviewed-By: Minwoo Jung <nodecorelab@gmail.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
1 parent d148f35 commit 8c06e2f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/_http_server.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -262,8 +262,8 @@ function onServerResponseClose() {
262262
// array. That is, in the example below, b still gets called even though
263263
// it's been removed by a:
264264
//
265-
// var EventEmitter = require('events');
266-
// var obj = new EventEmitter();
265+
// const EventEmitter = require('events');
266+
// const obj = new EventEmitter();
267267
// obj.on('event', a);
268268
// obj.on('event', b);
269269
// function a() { obj.removeListener('event', b) }

0 commit comments

Comments
 (0)