iOS Swift - Networking
Identify the error in this Swift network call code:
URLSession.shared.dataTask(with: url) { data, response, error in
if error != nil {
print(error.localizedDescription)
}
}.resume()