Skip to content

Commit a830435

Browse files
authored
Silence a Windows-only warning about unused try. (#1740)
Silences a warning emitted from a test target on Windows. ### Checklist: - [x] Code and documentation should follow the style of the [Style Guide](https://github.com/apple/swift-testing/blob/main/Documentation/StyleGuide.md). - [x] If public symbols are renamed or modified, DocC references should be updated.
1 parent 3f4985e commit a830435

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Tests/TestingTests/Support/FileHandleTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ struct FileHandleTests {
7373
throw Win32Error(rawValue: GetLastError())
7474
}
7575
let fileHandle = try FileHandle(unsafeWindowsHANDLE: windowsHANDLE, options: [.readAccess])
76-
try fileHandle.withUnsafeWindowsHANDLE { ownedHANDLE in
76+
fileHandle.withUnsafeWindowsHANDLE { ownedHANDLE in
7777
#expect(windowsHANDLE == ownedHANDLE)
7878
}
7979
}

0 commit comments

Comments
 (0)