Skip to content

Commit 2e4719a

Browse files
committed
Adds Xcode 8.2.1 / Swift 3.0 check.
1 parent cdb7608 commit 2e4719a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

RxCocoa/Foundation/URLSession+Rx.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ extension Reactive where Base: URLSession {
142142
let interval = Date().timeIntervalSince(d ?? Date())
143143
print(convertURLRequestToCurlCommand(request))
144144
#if os(Linux)
145-
print(convertResponseToString(response, error.flatMap { $0 as NSError }, interval))
145+
print(convertResponseToString(response, error.flatMap { $0 as? NSError }, interval))
146146
#else
147147
print(convertResponseToString(response, error.map { $0 as NSError }, interval))
148148
#endif

0 commit comments

Comments
 (0)