Skip to content

Commit f380094

Browse files
kkebokateinoigakukun
authored andcommitted
WASI: Remove check for write access from fd_sync
1 parent d242360 commit f380094

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

Sources/WASI/Platform/File.swift

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,6 @@ extension FdWASIFile {
2525
}
2626

2727
func sync() throws {
28-
guard accessMode.contains(.write) else {
29-
throw WASIAbi.Errno.EBADF
30-
}
3128
try WASIAbi.Errno.translatingPlatformErrno {
3229
try fd.sync()
3330
}

0 commit comments

Comments
 (0)