File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ const Writable = require('_stream_writable');
35
35
util . inherits ( Duplex , Readable ) ;
36
36
37
37
{
38
- // avoid scope creep, the keys array can then be collected
38
+ // Allow the keys array to be GC'ed.
39
39
const keys = Object . keys ( Writable . prototype ) ;
40
40
for ( var v = 0 ; v < keys . length ; v ++ ) {
41
41
const method = keys [ v ] ;
Original file line number Diff line number Diff line change @@ -244,7 +244,7 @@ function Socket(options) {
244
244
else
245
245
options = util . _extend ( { } , options ) ;
246
246
247
- const aho = options . allowHalfOpen ;
247
+ const allowHalfOpen = options . allowHalfOpen ;
248
248
249
249
// Prevent the "no-half-open enforcer" from being inherited from `Duplex`.
250
250
options . allowHalfOpen = true ;
@@ -253,7 +253,7 @@ function Socket(options) {
253
253
stream . Duplex . call ( this , options ) ;
254
254
255
255
// Default to *not* allowing half open sockets.
256
- this . allowHalfOpen = Boolean ( aho ) ;
256
+ this . allowHalfOpen = Boolean ( allowHalfOpen ) ;
257
257
258
258
if ( options . handle ) {
259
259
this . _handle = options . handle ; // private
You can’t perform that action at this time.
0 commit comments