Skip to content

Commit

Permalink
Adds Xcode 8.2.1 / Swift 3.0 check.
Browse files Browse the repository at this point in the history
  • Loading branch information
kzaher committed Apr 30, 2017
1 parent cdb7608 commit 2e4719a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion RxCocoa/Foundation/URLSession+Rx.swift
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ extension Reactive where Base: URLSession {
let interval = Date().timeIntervalSince(d ?? Date())
print(convertURLRequestToCurlCommand(request))
#if os(Linux)
print(convertResponseToString(response, error.flatMap { $0 as NSError }, interval))
print(convertResponseToString(response, error.flatMap { $0 as? NSError }, interval))
#else
print(convertResponseToString(response, error.map { $0 as NSError }, interval))
#endif
Expand Down

0 comments on commit 2e4719a

Please sign in to comment.