We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1143457 commit 9c38771Copy full SHA for 9c38771
Source/Request.swift
@@ -84,14 +84,20 @@ class Request: AsyncOperation {
84
self.completion = completion
85
super.init()
86
// Assign a descriptive name, but let the caller may change it afterwards (in contrast to getter override).
87
- self.name = "Request{\(method) /\(path)}"
+ if #available(iOS 8.0, *) {
88
+ self.name = "Request{\(method) /\(path)}"
89
+ }
90
}
91
92
// MARK: - Debug
93
94
override var description: String {
95
get {
- return name ?? super.description
96
97
+ return name ?? super.description
98
+ } else {
99
+ return super.description
100
101
102
103
0 commit comments