Try was supposed to be `try?` (#830)
This commit is contained in:
Родитель
4335f2628a
Коммит
a975119ae8
|
@ -1050,7 +1050,7 @@ ${this.accessLevel}class JSONAny: Codable {
|
|||
completionHandler(nil, response, error)
|
||||
return
|
||||
}
|
||||
completionHandler(try! JSONDecoder().decode(T.self, from: data), response, nil)
|
||||
completionHandler(try? JSONDecoder().decode(T.self, from: data), response, nil)
|
||||
}
|
||||
}`);
|
||||
this.ensureBlankLine();
|
||||
|
|
Загрузка…
Ссылка в новой задаче