Swift 2.0错误处理显示警告

时间:2015-10-02 06:43:11

标签: ios swift2

如何删除此警告swift 2.0?

enter image description here

1 个答案:

答案 0 :(得分:2)

您不需要使用错误处理,因为显然.executeUpdate不会抛出任何错误,因此您可以删除do try catch并只调用database.executeUpdate