Skip to content

Commit

Permalink
Solve print warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
danielgarbien committed Mar 14, 2018
1 parent ac3fcbd commit 5d48c16
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions PagedFeed/Synchronizer.swift
Expand Up @@ -68,11 +68,11 @@ class Synchronizer {
sessionDelegate.setCompletionHandlerForTask(task) { (data, response, error) in

guard error?.code != NSURLErrorCancelled else {
print("Request with URL: \(request.url ?? nil) was cancelled")
print("Request with URL: \(String(describing: request.url)) was cancelled")
return // cancel quitely
}

print("Response: \(response)")
print("Response: \(String(describing: response))")
if let result = SynchronizerResult<Object>.resultWithResponse(response, error: error) {
completeOnMainThread(result)
return
Expand Down

0 comments on commit 5d48c16

Please sign in to comment.