From e0a30adf28e11fefcce5af4ba460eaefac8bd2d8 Mon Sep 17 00:00:00 2001 From: Maxim Anisimov Date: Fri, 10 Sep 2021 18:08:41 +0300 Subject: [PATCH] Change from try! to try? for FailableIterator --- Sources/SQLite/Core/Statement.swift | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Sources/SQLite/Core/Statement.swift b/Sources/SQLite/Core/Statement.swift index 1e2489b5..48347c31 100644 --- a/Sources/SQLite/Core/Statement.swift +++ b/Sources/SQLite/Core/Statement.swift @@ -207,8 +207,7 @@ public protocol FailableIterator: IteratorProtocol { extension FailableIterator { public func next() -> Element? { - // swiftlint:disable:next force_try - try! failableNext() + try? failableNext() } }