mirror of
https://github.com/groue/GRDB.swift
synced 2026-11-30 04:28:44 +00:00
SE-0345: if let shorthand for shadowing an existing optional variable
This commit is contained in:
1 parent
d3c289a320
commit
ac214e6760
54 files changed
+110
-110
No files matched your search
@@ -47,7 +47,7 @@ struct SQLQueryGenerator: Refinable {
|
||||
}
|
||||
|
||||
let filter = try relation.filterPromise?.resolve(context.db)
|
||||
if let filter = filter {
|
||||
if let filter {
|
||||
sql += " WHERE "
|
||||
sql += try filter.sql(context)
|
||||
}
|
||||
@@ -83,7 +83,7 @@ struct SQLQueryGenerator: Refinable {
|
||||
limit = SQLLimit(limit: 1, offset: limit?.offset)
|
||||
}
|
||||
|
||||
if let limit = limit {
|
||||
if let limit {
|
||||
sql += " LIMIT "
|
||||
sql += limit.sql
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user