Skip to content

Commit 29d48bc

Browse files
authored
Delegate whenAvailable to the designated one (#12)
1 parent fc93a70 commit 29d48bc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/InterposeKit/InterposeKit.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ extension Interpose {
230230
/// Interpose a class once available. Class is passed via `className` string.
231231
@discardableResult public class func whenAvailable(_ className: String,
232232
builder: @escaping (Interpose) throws -> Void) throws -> Waiter {
233-
try Waiter(className: className, builder: builder, completion: nil)
233+
try whenAvailable(className, builder: builder, completion: nil)
234234
}
235235

236236
/// Interpose a class once available. Class is passed via `className` string, with completion handler.

0 commit comments

Comments
 (0)