Skip to content

Commit

Permalink
FileDescriptor: _read(into:retryOnInterrupt) should not declare throws
Browse files Browse the repository at this point in the history
  • Loading branch information
simonjbeaumont committed May 5, 2022
1 parent a77a331 commit a54ce83
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/System/FileOperations.swift
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ extension FileDescriptor {
internal func _read(
into buffer: UnsafeMutableRawBufferPointer,
retryOnInterrupt: Bool
) throws -> Result<Int, Errno> {
) -> Result<Int, Errno> {
valueOrErrno(retryOnInterrupt: retryOnInterrupt) {
system_read(self.rawValue, buffer.baseAddress, buffer.count)
}
Expand Down

0 comments on commit a54ce83

Please sign in to comment.