Skip to content

Commit e3e031d

Browse files
author
Denis
committed
Removed the force unwrap in the FailableIterator extension for the next () method
Although the method accepts an optional return, the function forces unwrap
1 parent 70fb7af commit e3e031d

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

SQLite.xcodeproj/project.pbxproj

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1257,6 +1257,7 @@
12571257
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
12581258
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
12591259
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
1260+
MARKETING_VERSION = 0.12.3;
12601261
PRODUCT_BUNDLE_IDENTIFIER = com.stephencelis.SQLite;
12611262
PRODUCT_NAME = SQLite;
12621263
SKIP_INSTALL = YES;
@@ -1278,6 +1279,7 @@
12781279
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
12791280
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
12801281
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
1282+
MARKETING_VERSION = 0.12.3;
12811283
PRODUCT_BUNDLE_IDENTIFIER = com.stephencelis.SQLite;
12821284
PRODUCT_NAME = SQLite;
12831285
SKIP_INSTALL = YES;

Sources/SQLite/Core/Statement.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ public protocol FailableIterator : IteratorProtocol {
208208

209209
extension FailableIterator {
210210
public func next() -> Element? {
211-
return try! failableNext()
211+
return try? failableNext()
212212
}
213213
}
214214

Sources/SQLite/Info.plist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<key>CFBundlePackageType</key>
1616
<string>FMWK</string>
1717
<key>CFBundleShortVersionString</key>
18-
<string>0.12.2</string>
18+
<string>$(MARKETING_VERSION)</string>
1919
<key>CFBundleSignature</key>
2020
<string>????</string>
2121
<key>CFBundleVersion</key>

0 commit comments

Comments
 (0)