Skip to content

Commit 5a5dad2

Browse files
deokjinkimtargos
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 <[email protected]> Reviewed-By: Matteo Collina <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: theanarkh <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Zeyu "Alex" Yang <[email protected]> Reviewed-By: Minwoo Jung <[email protected]> Reviewed-By: Trivikram Kamat <[email protected]>
1 parent fdbc593 commit 5a5dad2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/_http_server.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -257,8 +257,8 @@ function onServerResponseClose() {
257257
// array. That is, in the example below, b still gets called even though
258258
// it's been removed by a:
259259
//
260-
// var EventEmitter = require('events');
261-
// var obj = new EventEmitter();
260+
// const EventEmitter = require('events');
261+
// const obj = new EventEmitter();
262262
// obj.on('event', a);
263263
// obj.on('event', b);
264264
// function a() { obj.removeListener('event', b) }

0 commit comments

Comments
 (0)