@@ -582,15 +582,15 @@ function doShutdown(options) {
582
582
function submitShutdown ( options ) {
583
583
const type = this [ kType ] ;
584
584
debug ( `Http2Session ${ sessionName ( type ) } : submitting shutdown request` ) ;
585
- const fn = doShutdown . bind ( this , options ) ;
585
+ const shutdownFn = doShutdown . bind ( this , options ) ;
586
586
if ( type === NGHTTP2_SESSION_SERVER && options . graceful === true ) {
587
587
// first send a shutdown notice
588
588
this [ kHandle ] . shutdownNotice ( ) ;
589
589
// then, on flip of the event loop, do the actual shutdown
590
- setImmediate ( fn ) ;
590
+ setImmediate ( shutdownFn ) ;
591
591
return ;
592
592
}
593
- fn ( ) ;
593
+ shutdownFn ( ) ;
594
594
}
595
595
596
596
function finishSessionDestroy ( socket ) {
@@ -877,12 +877,12 @@ class Http2Session extends EventEmitter {
877
877
debug ( `Http2Session ${ sessionName ( this [ kType ] ) } : sending settings` ) ;
878
878
879
879
state . pendingAck ++ ;
880
- const fn = submitSettings . bind ( this , settings ) ;
880
+ const settingsFn = submitSettings . bind ( this , settings ) ;
881
881
if ( state . connecting ) {
882
- this . once ( 'connect' , fn ) ;
882
+ this . once ( 'connect' , settingsFn ) ;
883
883
return ;
884
884
}
885
- fn ( ) ;
885
+ settingsFn ( ) ;
886
886
}
887
887
888
888
// Destroy the Http2Session
@@ -968,14 +968,14 @@ class Http2Session extends EventEmitter {
968
968
this . on ( 'shutdown' , callback ) ;
969
969
}
970
970
971
- const fn = submitShutdown . bind ( this , options ) ;
971
+ const shutdownFn = submitShutdown . bind ( this , options ) ;
972
972
if ( state . connecting ) {
973
- this . once ( 'connect' , fn ) ;
973
+ this . once ( 'connect' , shutdownFn ) ;
974
974
return ;
975
975
}
976
976
977
977
debug ( `Http2Session ${ sessionName ( type ) } : sending shutdown` ) ;
978
- fn ( ) ;
978
+ shutdownFn ( ) ;
979
979
}
980
980
981
981
_onTimeout ( ) {
@@ -1379,12 +1379,12 @@ class Http2Stream extends Duplex {
1379
1379
if ( code < 0 || code > kMaxInt )
1380
1380
throw new errors . RangeError ( 'ERR_OUT_OF_RANGE' , 'code' ) ;
1381
1381
1382
- const fn = submitRstStream . bind ( this , code ) ;
1382
+ const rstStreamFn = submitRstStream . bind ( this , code ) ;
1383
1383
if ( this [ kID ] === undefined ) {
1384
- this . once ( 'ready' , fn ) ;
1384
+ this . once ( 'ready' , rstStreamFn ) ;
1385
1385
return ;
1386
1386
}
1387
- fn ( ) ;
1387
+ rstStreamFn ( ) ;
1388
1388
}
1389
1389
1390
1390
rstWithNoError ( ) {
@@ -1415,12 +1415,12 @@ class Http2Stream extends Duplex {
1415
1415
options = Object . assign ( { } , options ) ;
1416
1416
validatePriorityOptions ( options ) ;
1417
1417
1418
- const fn = submitPriority . bind ( this , options ) ;
1418
+ const priorityFn = submitPriority . bind ( this , options ) ;
1419
1419
if ( this [ kID ] === undefined ) {
1420
- this . once ( 'ready' , fn ) ;
1420
+ this . once ( 'ready' , priorityFn ) ;
1421
1421
return ;
1422
1422
}
1423
- fn ( ) ;
1423
+ priorityFn ( ) ;
1424
1424
}
1425
1425
1426
1426
// Called by this.destroy().
0 commit comments