Przeglądaj źródła

Removed the external parameter name requirement from validate API.

Christian Noon 9 lat temu
rodzic
commit
8c5a83bc1e
1 zmienionych plików z 1 dodań i 1 usunięć
  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,