mirror of
https://github.com/groue/GRDB.swift
synced 2026-11-24 04:07:47 +00:00
Replace if let x = x with if let x
This commit is contained in:
1 parent
6bf346ccf5
commit
2a5626efea
2 files changed
+2
-2
No files matched your search
@@ -1045,7 +1045,7 @@ public struct PrimaryKeyInfo {
|
||||
///
|
||||
/// Returns nil for WITHOUT ROWID tables with a multi-columns primary key
|
||||
var fastPrimaryKeyColumn: String? {
|
||||
if let rowIDColumn = rowIDColumn {
|
||||
if let rowIDColumn {
|
||||
// Prefer the user-provided name of the rowid
|
||||
//
|
||||
// // CREATE TABLE player (id INTEGER PRIMARY KEY, ...)
|
||||
|
||||
@@ -460,7 +460,7 @@ extension MutablePersistableRecord {
|
||||
// This allows the Record class to set its `hasDatabaseChanges` property
|
||||
// to false in its `aroundInsert` callback.
|
||||
var persistenceContainer = dao.persistenceContainer
|
||||
if let rowIDColumn = rowIDColumn {
|
||||
if let rowIDColumn {
|
||||
persistenceContainer[caseInsensitive: rowIDColumn] = rowid
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user