SE-0345: if let shorthand for shadowing an existing optional variable

This commit is contained in:
Gwendal Roué committed 2023-01-30 08:00:47 +01:00
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
}