aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/bun.js/webcore/streams.zig5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/bun.js/webcore/streams.zig b/src/bun.js/webcore/streams.zig
index a7f90a0e6..801fb4741 100644
--- a/src/bun.js/webcore/streams.zig
+++ b/src/bun.js/webcore/streams.zig
@@ -1196,11 +1196,6 @@ pub const FileSink = struct {
}
pub fn start(this: *FileSink, stream_start: StreamStart) JSC.Node.Maybe(void) {
- if (this.fd != bun.invalid_fd) {
- _ = JSC.Node.Syscall.close(this.fd);
- this.fd = bun.invalid_fd;
- }
-
this.done = false;
this.written = 0;
this.auto_close = false;