Skip to content

Commit a54ce83

Browse files
FileDescriptor: _read(into:retryOnInterrupt) should not declare throws
1 parent a77a331 commit a54ce83

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/System/FileOperations.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ extension FileDescriptor {
165165
internal func _read(
166166
into buffer: UnsafeMutableRawBufferPointer,
167167
retryOnInterrupt: Bool
168-
) throws -> Result<Int, Errno> {
168+
) -> Result<Int, Errno> {
169169
valueOrErrno(retryOnInterrupt: retryOnInterrupt) {
170170
system_read(self.rawValue, buffer.baseAddress, buffer.count)
171171
}

0 commit comments

Comments
 (0)