We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b8df454 commit 2ddade5Copy full SHA for 2ddade5
1 file changed
Source/Alamofire-SwiftyJSON.swift
@@ -45,12 +45,10 @@ extension Alamofire.Request {
45
46
if error != nil {
47
responseJSON = SwiftyJSON.JSON.Null(error)
48
+ } else if object != nil {
49
+ responseJSON = SwiftyJSON.JSON(object: object!)
50
} else {
- if object != nil {
- responseJSON = SwiftyJSON.JSON(object: object)
51
- } else {
52
- responseJSON = SwiftyJSON.JSON.Null(nil)
53
- }
+ responseJSON = SwiftyJSON.JSON.Null(nil)
54
}
55
56
dispatch_async(queue ?? dispatch_get_main_queue(), {
0 commit comments