From b3d81de5a36469156141f479dd6b9c8a34a56cb1 Mon Sep 17 00:00:00 2001 From: Avner Date: Sun, 27 Dec 2020 12:09:11 +0200 Subject: [PATCH 1/2] Update Statement.swift --- Sources/SQLite/Core/Statement.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Sources/SQLite/Core/Statement.swift b/Sources/SQLite/Core/Statement.swift index dc91d3d8..ab276864 100644 --- a/Sources/SQLite/Core/Statement.swift +++ b/Sources/SQLite/Core/Statement.swift @@ -207,8 +207,8 @@ public protocol FailableIterator : IteratorProtocol { } extension FailableIterator { - public func next() -> Element? { - return try! failableNext() + public func next() throws -> Element? { + return try failableNext() } } From a1fe93d67c0505b836a934bf4865d53279441e63 Mon Sep 17 00:00:00 2001 From: Avner Date: Sun, 27 Dec 2020 13:25:10 +0200 Subject: [PATCH 2/2] Update Statement.swift --- Sources/SQLite/Core/Statement.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Sources/SQLite/Core/Statement.swift b/Sources/SQLite/Core/Statement.swift index ab276864..237d4812 100644 --- a/Sources/SQLite/Core/Statement.swift +++ b/Sources/SQLite/Core/Statement.swift @@ -207,8 +207,8 @@ public protocol FailableIterator : IteratorProtocol { } extension FailableIterator { - public func next() throws -> Element? { - return try failableNext() + public func next() -> Element? { + return try? failableNext() } }