Skip to content

Commit ca70046

Browse files
committed
Fix compatibility with Swift 5.3.3
1 parent 81d78be commit ca70046

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Sources/System/FileOperations.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,12 @@ extension FileDescriptor {
3232
retryOnInterrupt: Bool = true
3333
) throws -> FileDescriptor {
3434
#if !os(Windows)
35-
try path.withCString {
35+
return try path.withCString {
3636
try FileDescriptor.open(
3737
$0, mode, options: options, permissions: permissions, retryOnInterrupt: retryOnInterrupt)
3838
}
3939
#else
40-
try path.withPlatformString {
40+
return try path.withPlatformString {
4141
try FileDescriptor.open(
4242
$0, mode, options: options, permissions: permissions, retryOnInterrupt: retryOnInterrupt)
4343
}

0 commit comments

Comments
 (0)