Remove commented/debug code.

This commit is contained in:
Maurice Parker 2020-04-22 14:21:38 -05:00
parent 0ac5a6dbca
commit 3eecae95e1
1 changed files with 2 additions and 5 deletions

View File

@ -323,16 +323,12 @@ private extension TwitterFeedProvider {
client.get(url, parameters: expandedParameters) { result in
switch result {
case .success(let response):
let decoder = JSONDecoder()
let dateFormatter = DateFormatter()
dateFormatter.dateFormat = Self.dateFormat
decoder.dateDecodingStrategy = .formatted(dateFormatter)
// let jsonString = String(data: response.data, encoding: .utf8)
// let url = FileManager.default.urls(for: .documentDirectory, in: .userDomainMask).first!.appendingPathComponent("twitter.json")
// print("******** writing to: \(url.path)")
// try? jsonString?.write(toFile: url.path, atomically: true, encoding: .utf8)
do {
let tweets: [TwitterStatus]
if isSearch {
@ -349,6 +345,7 @@ private extension TwitterFeedProvider {
} catch {
completion(.failure(error))
}
case .failure(let error):
completion(.failure(error))
}