Skip to content

Commit 34b3ebe

Browse files
committed
Fix warning when using try on a non-throwing function
1 parent 710a519 commit 34b3ebe

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Sources/MachPort/MachPortEventController.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ public final class MachPortEventController: MachPortEventPublisher {
6565

6666
public func reload(in runLoop: CFRunLoop = CFRunLoopGetMain(),
6767
mode: CFRunLoopMode) throws {
68-
try stop(mode: mode)
68+
stop(mode: mode)
6969
try start(mode: mode)
7070
}
7171

0 commit comments

Comments
 (0)