Swiftlint + whitespace

This commit is contained in:
Gwendal Roué committed 2019-07-01 08:57:53 +02:00
1 parent b3215cc471
commit df6bb8761c
110 files changed
+3257 -1572

No files matched your search

+5 -3
View File
@@ -37,15 +37,17 @@ extension SQLCollection {
/// SQLExpressionsArray wraps an array of expressions
///
/// SQLExpressionsArray([1, 2, 3])
struct SQLExpressionsArray : SQLCollection {
struct SQLExpressionsArray: SQLCollection {
let expressions: [SQLExpression]
init<S: Sequence>(_ expressions: S) where S.Iterator.Element : SQLExpressible {
init<S: Sequence>(_ expressions: S) where S.Iterator.Element: SQLExpressible {
self.expressions = expressions.map { $0.sqlExpression }
}
func collectionSQL(_ context: inout SQLGenerationContext) -> String {
return (expressions.map { $0.expressionSQL(&context, wrappedInParenthesis: false) } as [String]).joined(separator: ", ")
return expressions
.map { $0.expressionSQL(&context, wrappedInParenthesis: false) }
.joined(separator: ", ")
}
func contains(_ value: SQLExpressible) -> SQLExpression {