Bläddra i källkod

Removed the external parameter name requirement from validate API.

Christian Noon 9 år sedan
förälder
incheckning
8c5a83bc1e
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. 1 1
      Source/Validation.swift

+ 1 - 1
Source/Validation.swift

@@ -46,7 +46,7 @@ extension Request {
     ///
     /// - returns: The request.
     @discardableResult
-    public func validate(validation: Validation) -> Self {
+    public func validate(_ validation: Validation) -> Self {
         delegate.queue.addOperation {
             if
                 let response = self.response,