Skip to content

Commit cfc3111

Browse files
refactor: remove unused stream property from WebStreamFileSource
1 parent efda4bf commit cfc3111

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

lib/sources/WebStreamFileSource.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,6 @@ export class WebStreamFileSource implements FileSource {
3939

4040
private _done = false
4141

42-
private _stream: ReadableStream
43-
4442
// Setting the size to null indicates that we have no calculation available
4543
// for how much data this stream will emit requiring the user to specify
4644
// it manually (see the `uploadSize` option).
@@ -52,7 +50,6 @@ export class WebStreamFileSource implements FileSource {
5250
'Readable stream is already locked to reader. tus-js-client cannot obtain a new reader.',
5351
)
5452
}
55-
this._stream = stream
5653
this._reader = stream.getReader()
5754
}
5855

0 commit comments

Comments
 (0)