File tree Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -31,22 +31,19 @@ import { ReferenceCompat } from './reference';
31
31
import { FirebaseStorageError } from '../src/implementation/error' ;
32
32
33
33
export class UploadTaskCompat implements types . UploadTask {
34
- private readonly _snapshot : UploadTaskSnapshotCompat ;
35
34
constructor (
36
35
private readonly _delegate : UploadTask ,
37
36
private readonly _ref : ReferenceCompat
38
- ) {
39
- this . _snapshot = new UploadTaskSnapshotCompat (
37
+ ) { }
38
+
39
+ get snapshot ( ) : UploadTaskSnapshotCompat {
40
+ return new UploadTaskSnapshotCompat (
40
41
this . _delegate . snapshot ,
41
42
this ,
42
43
this . _ref
43
44
) ;
44
45
}
45
46
46
- get snapshot ( ) : UploadTaskSnapshotCompat {
47
- return this . _snapshot ;
48
- }
49
-
50
47
cancel = this . _delegate . cancel . bind ( this . _delegate ) ;
51
48
catch = this . _delegate . catch . bind ( this . _delegate ) ;
52
49
pause = this . _delegate . pause . bind ( this . _delegate ) ;
You can’t perform that action at this time.
0 commit comments