Skip to content

Commit 7a7bcfd

Browse files
author
Nathan Fallet
authored
Merge pull request #1030 from denis-couras/Remove-force-unwrap
2 parents b251194 + e3e031d commit 7a7bcfd

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
@@ -1256,6 +1256,7 @@
12561256
INFOPLIST_FILE = "$(SRCROOT)/Sources/SQLite/Info.plist";
12571257
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
12581258
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
1259+
MARKETING_VERSION = 0.12.3;
12591260
PRODUCT_BUNDLE_IDENTIFIER = com.stephencelis.SQLite;
12601261
PRODUCT_NAME = SQLite;
12611262
SKIP_INSTALL = YES;
@@ -1276,6 +1277,7 @@
12761277
INFOPLIST_FILE = "$(SRCROOT)/Sources/SQLite/Info.plist";
12771278
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
12781279
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
1280+
MARKETING_VERSION = 0.12.3;
12791281
PRODUCT_BUNDLE_IDENTIFIER = com.stephencelis.SQLite;
12801282
PRODUCT_NAME = SQLite;
12811283
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)