Skip to content

Commit f99efcd

Browse files
stephencelisp4checo
authored andcommitted
Avoid openURL ambiguity (#1621)
Fixes #1619. (cherry picked from commit d905658ad55402182ec979f5db8df5500d8bc55a)
1 parent 23e5b64 commit f99efcd

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Sources/Dependencies/Dependencies/OpenURL.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,10 +69,12 @@ import XCTestDynamicOverlay
6969
}
7070

7171
@available(watchOS, unavailable)
72+
@discardableResult
7273
public func callAsFunction(_ url: URL) async -> Bool {
7374
await self.handler(url)
7475
}
7576

77+
@_disfavoredOverload
7678
public func callAsFunction(_ url: URL) async {
7779
_ = await self.handler(url)
7880
}

0 commit comments

Comments
 (0)