Skip to content

Commit 95b49a8

Browse files
committed
Oooops… fix compile errors
1 parent 5f97bc5 commit 95b49a8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

CodyFire/Classes/APIRequest+ParseResponse.swift

+3-3
Original file line numberDiff line numberDiff line change
@@ -24,16 +24,16 @@ extension APIRequest {
2424
?? DateCodingStrategy.default.jsonDateDecodingStrategy
2525
var errorRaised = false
2626
if let data = answer.data {
27-
if ResultType.self is EmptyResponse.Type {
27+
if ResultType.self is Nothing.Type {
2828
if diff > 0 {
2929
DispatchQueue.global(qos: DispatchQoS.QoSClass.userInteractive).async {
3030
Thread.sleep(forTimeInterval: diff)
3131
DispatchQueue.main.async {
32-
self.successCallback?(EmptyResponse() as! ResultType)
32+
self.successCallback?(Nothing() as! ResultType)
3333
}
3434
}
3535
} else {
36-
successCallback?(EmptyResponse() as! ResultType)
36+
successCallback?(Nothing() as! ResultType)
3737
}
3838
} else if ResultType.self is Data.Type {
3939
if diff > 0 {

0 commit comments

Comments
 (0)