Sfoglia il codice sorgente

Moved `Validation` typealias formatting onto multiple lines…no functional changes.

Christian Noon 9 anni fa
parent
commit
dc4b627fd7
1 ha cambiato i file con 6 aggiunte e 1 eliminazioni
  1. 6 1
      Source/Validation.swift

+ 6 - 1
Source/Validation.swift

@@ -222,7 +222,12 @@ extension DataRequest {
 extension DownloadRequest {
     /// A closure used to validate a request that takes a URL request, a URL response, a temporary URL and a
     /// destination URL, and returns whether the request was valid.
-    public typealias Validation = (_ request: URLRequest?, _ response: HTTPURLResponse, _ temporary: URL?, _ destination: URL?) -> ValidationResult
+    public typealias Validation = (
+        _ request: URLRequest?,
+        _ response: HTTPURLResponse,
+        _ temporaryURL: URL?,
+        _ destinationURL: URL?)
+        -> ValidationResult
 
     /// Validates the request, using the specified closure.
     ///