Skip to content

Commit

Permalink
Use AnyObject instead of NSDictionary
Browse files Browse the repository at this point in the history
  • Loading branch information
3lvis committed Oct 1, 2015
1 parent 98508ad commit 0845973
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Source/Networking.swift
Original file line number Diff line number Diff line change
Expand Up @@ -107,9 +107,9 @@ public class Networking {

let task = session.dataTaskWithRequest(request, completionHandler: {data, response, error -> Void in
var serializingError: NSError? = nil
var json: NSDictionary?
var json: AnyObject?
do {
json = try NSJSONSerialization.JSONObjectWithData(data!, options: .MutableLeaves) as? NSDictionary
json = try NSJSONSerialization.JSONObjectWithData(data!, options: .MutableLeaves)
} catch let error as NSError {
serializingError = error
}
Expand Down

0 comments on commit 0845973

Please sign in to comment.