Skip to content

Commit 0d905d7

Browse files
fix Xcode build error
1 parent 926b87d commit 0d905d7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/SQLite/Core/Connection+Pragmas.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ public extension Connection {
77
/// See SQLite [PRAGMA user_version](https://sqlite.org/pragma.html#pragma_user_version)
88
var userVersion: UserVersion? {
99
get {
10-
(try? scalar("PRAGMA user_version") as? Int64).map(Int32.init)
10+
(try? scalar("PRAGMA user_version") as? Int64)?.map(Int32.init)
1111
}
1212
set {
1313
_ = try? run("PRAGMA user_version = \(newValue ?? 0)")

0 commit comments

Comments
 (0)