Fix redundant_self_in_closure Swiftlint warning

This commit is contained in:
Gwendal Roué committed 2023-07-29 10:06:33 +02:00
1 parent 206bf209af
commit 28c6ea96b4
5 files changed
+12 -9

No files matched your search

@@ -566,8 +566,8 @@ private struct SQLQualifiedRelation {
/// The full selection, including selection of joined relations
var selectionPromise: DatabasePromise<[SQLSelection]> {
DatabasePromise { db in
let selection = try self.sourceSelectionPromise.resolve(db)
return try self.joins.values.reduce(into: selection) { selection, join in
let selection = try sourceSelectionPromise.resolve(db)
return try joins.values.reduce(into: selection) { selection, join in
let joinedSelection = try join.relation.selectionPromise.resolve(db)
selection.append(contentsOf: joinedSelection)
}