Fix Swiftlint warning

This commit is contained in:
Gwendal Roué committed 2020-11-01 10:39:48 +01:00
1 parent 645aa1d67b
commit d66a3f4ab3
2 files changed
+2 -2

No files matched your search

@@ -148,7 +148,7 @@ extension FilteredRequest {
/// // SELECT * FROM player WHERE 0
/// var request = Player.all()
/// request = request.filter(false)
@available(*, deprecated, message: "Did you mean filter(key: id)? If not, prefer filter(value.databaseValue) instead. See also none().")
@available(*, deprecated, message: "Did you mean filter(key: id)? If not, prefer filter(value.databaseValue) instead. See also none().") // swiftlint:disable:this line_length
public func filter(_ predicate: SQLExpressible) -> Self {
filter { _ in predicate }
}
@@ -154,7 +154,7 @@ extension TableRecord {
/// The selection defaults to all columns. This default can be changed for
/// all requests by the `TableRecord.databaseSelection` property, or
/// for individual requests with the `TableRecord.select` method.
@available(*, deprecated, message: "Did you mean filter(key: id)? If not, prefer filter(value.databaseValue) instead. See also all() and none().")
@available(*, deprecated, message: "Did you mean filter(key: id)? If not, prefer filter(value.databaseValue) instead. See also all() and none().") // swiftlint:disable:this line_length
public static func filter(_ predicate: SQLExpressible) -> QueryInterfaceRequest<Self> {
all().filter(predicate.sqlExpression)
}