Commit 95b49a8 1 parent 5f97bc5 commit 95b49a8 Copy full SHA for 95b49a8
File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -24,16 +24,16 @@ extension APIRequest {
24
24
?? DateCodingStrategy . default. jsonDateDecodingStrategy
25
25
var errorRaised = false
26
26
if let data = answer. data {
27
- if ResultType . self is EmptyResponse . Type {
27
+ if ResultType . self is Nothing . Type {
28
28
if diff > 0 {
29
29
DispatchQueue . global ( qos: DispatchQoS . QoSClass. userInteractive) . async {
30
30
Thread . sleep ( forTimeInterval: diff)
31
31
DispatchQueue . main. async {
32
- self . successCallback ? ( EmptyResponse ( ) as! ResultType )
32
+ self . successCallback ? ( Nothing ( ) as! ResultType )
33
33
}
34
34
}
35
35
} else {
36
- successCallback ? ( EmptyResponse ( ) as! ResultType )
36
+ successCallback ? ( Nothing ( ) as! ResultType )
37
37
}
38
38
} else if ResultType . self is Data . Type {
39
39
if diff > 0 {
You can’t perform that action at this time.
0 commit comments