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

Commit

Permalink
Update usage of deprecated BoltsSwift APIs.
Browse files Browse the repository at this point in the history
  • Loading branch information
nlutsenko committed Jul 29, 2016
1 parent dc2ef2e commit dd2251c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Sources/ParseLiveQuery.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -134,13 +134,13 @@
isa = PBXGroup;
children = (
F5DC9D381BD9BAFC00E8FF07 /* Internal */,
81464FC51CA31DA0000235E7 /* Resources */,
F5591BA31BD720E10072F966 /* Client.swift */,
F534A5B11BDAFE0200CBD11A /* Subscription.swift */,
F54D58B51C8E33D9009F8D6C /* ObjCCompat.swift */,
F59CA92E1C8E496200329737 /* Errors.swift */,
0632EDD31CA1A6DB00DD3CB8 /* Parse+LiveQuery.swift */,
F5A88F491C9B6EBA002F0E0D /* PFQuery+Subscribe.swift */,
81464FC51CA31DA0000235E7 /* Resources */,
);
path = ParseLiveQuery;
sourceTree = "<group>";
Expand Down
4 changes: 2 additions & 2 deletions Sources/ParseLiveQuery/Internal/BoltsHelpers.swift
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@ func swiftTask(task: BFTask) -> Task<AnyObject> {
if task.cancelled {
taskCompletionSource.tryCancel()
} else if let error = task.error where task.faulted {
taskCompletionSource.trySetError(error)
taskCompletionSource.trySet(error: error)
} else if let result = task.result {
taskCompletionSource.trySetResult(result)
taskCompletionSource.trySet(result: result)
} else {
fatalError("Unknown task state")
}
Expand Down

0 comments on commit dd2251c

Please sign in to comment.