Explorar o código

Removed the external parameter name requirement from validate API.

Christian Noon %!s(int64=9) %!d(string=hai) anos
pai
achega
8c5a83bc1e
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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,