diff --git a/Sources/Vapor/Validation/Validators/Valid.swift b/Sources/Vapor/Validation/Validators/Valid.swift index 5b53fe6762..e864a092c8 100644 --- a/Sources/Vapor/Validation/Validators/Valid.swift +++ b/Sources/Vapor/Validation/Validators/Valid.swift @@ -1,19 +1,12 @@ extension Validator { /// Validates nothing. Can be used as placeholder to validate successful decoding public static var valid: Validator { - Valid().validator() + .init { _ in + ValidatorResults.Valid() + } } - - struct Valid { } } -extension Validator.Valid: ValidatorType { - func validate(_ data: T) -> ValidatorResult { - ValidatorResults.Valid() - } -} - - extension ValidatorResults { /// `ValidatorResult` of a validator that validates that the data is valid`. public struct Valid {