We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e407beb commit 20aaf99Copy full SHA for 20aaf99
Sources/StructuredQueriesCore/Optional.swift
@@ -103,9 +103,8 @@ extension Optional: Table where Wrapped: Table {
103
public subscript<QueryValue>(
104
dynamicMember keyPath: KeyPath<Wrapped.TableColumns, some QueryExpression<QueryValue>>
105
) -> some QueryExpression<QueryValue?> {
106
- let tmp = Wrapped.columns[keyPath: keyPath]
107
- let tmp1: Optional<some QueryExpression<QueryValue>> = .some(tmp)
108
- return tmp1
+ let result: (some QueryExpression<QueryValue>)? = .some(Wrapped.columns[keyPath: keyPath])
+ return result
109
}
110
111
0 commit comments