File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -94,7 +94,7 @@ export class UploadTask {
94
94
private _metadataErrorHandler : ( p1 : StorageError ) => void ;
95
95
private _resolve ?: ( p1 : UploadTaskSnapshot ) => void = undefined ;
96
96
private _reject ?: ( p1 : StorageError ) => void = undefined ;
97
- private pendingTimeout : ReturnType < typeof setTimeout > | null = null ;
97
+ private pendingTimeout ? : ReturnType < typeof setTimeout > ;
98
98
private _promise : Promise < UploadTaskSnapshot > ;
99
99
100
100
private sleepTime : number ;
@@ -193,7 +193,7 @@ export class UploadTask {
193
193
this . _fetchMetadata ( ) ;
194
194
} else {
195
195
this . pendingTimeout = setTimeout ( ( ) => {
196
- this . pendingTimeout = null ;
196
+ this . pendingTimeout = undefined ;
197
197
this . _continueUpload ( ) ;
198
198
} , this . sleepTime ) ;
199
199
}
@@ -416,7 +416,7 @@ export class UploadTask {
416
416
this . _request . cancel ( ) ;
417
417
} else if ( this . pendingTimeout ) {
418
418
clearTimeout ( this . pendingTimeout ) ;
419
- this . pendingTimeout = null ;
419
+ this . pendingTimeout = undefined ;
420
420
this . completeTransitions_ ( ) ;
421
421
}
422
422
break ;
You can’t perform that action at this time.
0 commit comments