Skip to content
This repository was archived by the owner on Jun 13, 2023. It is now read-only.

Commit 58d30b8

Browse files
committed
more nits
1 parent ce3b2ff commit 58d30b8

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Sources/ParseLiveQuery/Client.swift

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -139,10 +139,10 @@ extension Client {
139139

140140
- returns: Your subscription handler, for easy chaining.
141141
*/
142-
public func subscribe<T, U>(
143-
_ query: PFQuery<T>,
144-
handler: U
145-
) -> U where T: PFObject, U: SubscriptionHandling, U.PFObjectSubclass == T {
142+
public func subscribe<T>(
143+
_ query: PFQuery<T.PFObjectSubclass>,
144+
handler: T
145+
) -> T where T: SubscriptionHandling {
146146
let subscriptionRecord = SubscriptionRecord(
147147
query: query,
148148
requestId: requestIdGenerator(),
@@ -179,7 +179,7 @@ extension Client {
179179
- parameter query: The query to unsubscribe from.
180180
- parameter handler: The specific handler to unsubscribe from.
181181
*/
182-
public func unsubscribe<T, U>(_ query: PFQuery<T>, handler: U) where T: PFObject, U: SubscriptionHandling, U.PFObjectSubclass == T {
182+
public func unsubscribe<T>(_ query: PFQuery<T.PFObjectSubclass>, handler: T) where T: SubscriptionHandling {
183183
unsubscribe { $0.query == query && $0.subscriptionHandler === handler }
184184
}
185185

0 commit comments

Comments
 (0)