We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f9890b2 commit 10fae72Copy full SHA for 10fae72
packages/node/src/streams/fileChunkSink.ts
@@ -17,7 +17,7 @@ interface FileChunkSinkOptions {
17
/**
18
* File system implementation to use.
19
*/
20
- readonly fs?: NodeFileSystem;
+ readonly fs: NodeFileSystem;
21
}
22
23
@@ -70,7 +70,7 @@ export class FileChunkSink extends EventEmitter {
70
private emitDeleteOrDelete(file: fs.WriteStream) {
71
// If 'delete' event is not handled, delete the file
72
if (!this.emit('delete', file)) {
73
- (this._options.fs ?? fs).unlink(file.path.toString('utf-8'), () => {
+ this._options.fs.unlink(file.path.toString('utf-8')).catch(() => {
74
// Do nothing on error
75
});
76
0 commit comments