Replace if let x = x with if let x

This commit is contained in:
Gwendal Roué committed 2022-08-22 20:40:00 +02:00
1 parent 6bf346ccf5
commit 2a5626efea
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -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
}