瀏覽代碼

Removed the external parameter name requirement from validate API.

Christian Noon 9 年之前
父節點
當前提交
8c5a83bc1e
共有 1 個文件被更改,包括 1 次插入1 次删除
  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,