Skip to content

Commit 9879e2f

Browse files
author
Tim Smart
committed
fix: failed close is a defect
1 parent ba3301f commit 9879e2f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/internal/fs.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ const close = (fd: number) =>
4141

4242
export const open = (path: string, flags?: NFS.OpenMode, mode?: NFS.Mode) =>
4343
Effect.acquireRelease(unsafeOpen(path, flags, mode), (fd) =>
44-
Effect.ignoreLogged(close(fd))
44+
Effect.orDie(close(fd))
4545
)
4646

4747
export const read = (

0 commit comments

Comments
 (0)